Thread: String help!
View Single Post
Old 02-22-2008, 07:22 PM   #1 (permalink)
pabin
The Wanderer
Newcomer 
 
Join Date: Feb 2008
Posts: 6
Thanks: 2
pabin is on a distinguished road
Plugin/Addon String help!

Well i have been trying to extract each chars of a string and keep them in an array. I have used loop to get it but failed. any ideas...
e.g.
Code:
$string = 'hello';
$len = strlen($string);
for($i = 0; $i < $len; $i++){
$char = $string{$i};
//now i am stuck
}
pabin is offline  
Reply With Quote