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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -