Explotar coma php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Enthusiastic Elephant
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
// The manual specifies the second argument of json_decode as:
// assoc
// When TRUE, returned objects will be converted into associative arrays.
$array = json_decode(json_encode($booking), true);
$array = explode(' ', $string);
$array = str_split($string);
foreach ($objects as $obj){
echo $obj->user->description;
}
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));