php - Array with semicolon -
oke simple question
$wew=array(111,222,333); print_r($wew);
the output this
array ( [0] => 111,222,333 )
but want this
array ( [0] => 111, [1] => 222, [2] => 333 )
how ?
print_r(array(111,222,333));
(your code minus array) print:
array ( [0] => 111 [1] => 222 [2] => 333 )
so must have additional array. in order match first example it'd have be:
print_r(array("111,222,333"));
Comments
Post a Comment