FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » help
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
icon12.gif  help [message #5503] Thu, 05 September 2002 06:34 Go to previous message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma:
Senior Member

$str="abcd........";
//i want to get a function like this but work faster :

function spstr($str){
$len=strlen($str);
for($i=0;$i<$len;$i++){
$arr[]=substr($str,$i,1);
}
return $arr;
}
$arr=spstr($str);
=========
$arr[0]="a";
$arr[1]="b";
.
.


[Updated on: Thu, 05 September 2002 06:51]

Report message to a moderator

[Message index]
 
Read Message icon12.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: the ? operator
Next Topic: OOP php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 11:29:19 GMT 2024

Total time taken to generate the page: 0.04201 seconds