numeric string to single digit array
| From: | Richard Dunne | Date: | Tue, 25 Mar 2008 23:56:53 +0000 |
| Subject: | numeric string to single digit array | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-44789@lists.php.net to get a copy of this message | ||
Can anyone tell me how how to convert a string of integers into an array of single digit integers.
i.e. "1223123" into
['1','2,','2','3','1,'2','3'] ?
When I retreive a column of single digit integers I end up with a long string of numbers. I think
PHP is seeing this as one whole number and therefore is not splitting or exploding it. I hope I am
wrong in my thinking and there is a simple solution, though I am not seeing it. Can anyone help me?
Richard.