我想在PHP
.
弦 拉胡尔:12345644,贾廷:23452223,拉曼:33343212
我怎么能以下面的结果格式显示这个。
Array
(
[0] => Rahul
(
[0] => 12345644
)
[1] => Jatin
(
[0] => 23452223
)
[2] => Raman
(
[0] => 33343212
)
)
我试过这个
$arrayData = explode(",", $data);
结果是
Array
(
[0] => Rahul :12345644
[1] => Jatin :23452223
[2] => Raman :33343212
)
之后
foreach($arrayData as $eachValue) {
echo $eachValue;
}