- explode: documentation ( source)
<?php
$array = array(
array(
"users" => array( "email" => "test@yahoo.com ,testuser@yahoo.com" ,
"username" => "test,testuser",
"description" => "description1,description2"
),
),
);
foreach($array as $users) {
foreach($users as &$value) {
$users["users"]["email"][] = explode(",",$value["email"]);
//print_r($users);
}
}