how to split the series of no using php -


     array([0] =>  1,2,3,4,5) 

this input pattern have in code. have split value , need output below

array ( [0] => 1, [1] =>2, [2] => 3, [3] =>4, [4] =>5 ) 

try like

$avalues="1,2,3,4,5"; $myarray = explode(',',$avalues); print_r($myarray); 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -