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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -