okay, here it is, simple
$arrvalue = "1,2,3,4,5";
$array = array($arrvalue);
print_r($array);
outputsArray (
[0] => 1,2,3,4,5
)
How do i make it treat each seperate value as a new array item (seperated by comma)Array (
[0] => 1,
[1] => 2,
[2] => 3,
[3] => 4,
[4] => 5
)
Put in to geek speak: you have a comma delimited list that you want split up by the commas in to an array. explode()
if i explode at the , wont it just give me...
Array (
[0] = > 1 2 3 4 5
)
without the comma ?
i guess im asking for a more defined help... ie, where do i put the explode statement, etc
www.php.net/explode read
*eats crow*
thanks for pointing that out.. I have used explode many times to create an array and never thought of using it in this instance