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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -