Thread: String help!
View Single Post
Old 02-22-2008, 07:52 PM   #2 (permalink)
buggabill
The Contributor
 
buggabill's Avatar
 
Join Date: Jan 2008
Location: Maine, USA
Posts: 92
Thanks: 2
buggabill is on a distinguished road
Default

You would want to do something like this:
PHP Code:
$arr_char = array();
$string 'hello';
$len strlen($string);

for(
$i 0$i $len$i++)
{
    
$arr_char[] = substr($string$i1);

$arr_char will look like this:
PHP Code:
Array
(
    [
0] => h
    
[1] => e
    
[2] => l
    
[3] => l
    
[4] => o

__________________
-- Bill
"Why is it drug addicts and computer aficionados are both called users?" -Clifford Stoll
buggabill is offline  
Reply With Quote