01-25-2008, 11:03 AM
|
#6 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
PHP Code:
$seperated = explode(',', '124,366,697,125,123');
gives you an array of
Code:
Array
(
[0] => 124
[1] => 366
[2] => 697
[3] => 125
[4] => 123
)
explode, explodes an array at a given identifier, in this case ',' and essentially splits it up into an array
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|