02-22-2008, 07:52 PM
|
#2 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: Maine, USA
Posts: 92
Thanks: 2
|
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, $i, 1);
}
$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
|
|
|
|