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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -