i wanna Split this string retrieved from database with the help of PHP.
String Rahul:12345644,Jatin:23452223,Raman:33343212
How could i show this in below result format.
Array
(
[0] => Rahul
(
[0] => 12345644
)
[1] => Jatin
(
[0] => 23452223
)
[2] => Raman
(
[0] => 33343212
)
)
I tried this with
$arrayData = explode(",", $data);
the result is
Array
(
[0] => Rahul :12345644
[1] => Jatin :23452223
[2] => Raman :33343212
)
and after
foreach($arrayData as $eachValue) {
echo $eachValue;
}