> I have a string of 1034 and I want to have an array that has each number in > an element.(ex: num[0] = 1, num[1] = 0, num[2] = 3 num[3] = 4) Is there a > way to explode a string by each character? Just convert it to a string: ie. $foo = (string)$num; echo $foo[1]; -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] Explode a variable into each character Brandon Orther
- Re: [PHP] Explode a variable into each character Rasmus Lerdorf
- Re: [PHP] Explode a variable into each character Philip Olson