1 2 3 | $myString = "3,vipul,5"; $myArray = explode(',', $myString); print_r($myArray); |
Output:
Array ( [0] => 3 [1] => vipul [2] => 5 )
1 2 3 | foreach($myArray as $my_Array){ echo $my_Array.'<br>'; } |
Output:
0
vipul
5
1 2 3 | $myString = "3,vipul,5"; $myArray = explode(',', $myString); print_r($myArray); |
Output:
Array ( [0] => 3 [1] => vipul [2] => 5 )
1 2 3 | foreach($myArray as $my_Array){ echo $my_Array.'<br>'; } |
Output:
0
vipul
5