Re: string to array

From: Date: Wed, 12 Feb 2003 20:20:45 +0000
Subject: Re: string to array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135356@lists.php.net to get a copy of this message
There's no built-in function, but try this (copied from manual): $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); Kevin Waterson wrote:
What is the best method to convert a string to an array I need to able to loop through each letter of the string not just use $string[47] Is there a definitive method to do this? Kevin
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#135356) next »