$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
разделя низ php
<?php
// It doesnt get any better than this Example
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
echo $pieces[0]; // piece1
echo $pieces[1]; // piece2
низ в масив в php
print_r(explode(',',$yourstring));
взриви запетая php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
print_r(explode(',',$yourstring));
разделя низ php
explode(" ","Geeks for Geeks")
$array = explode(' ', $string);
ред на php масив
$array = explode(' ', $string);
str_split ( string $string [, int $split_length = 1 ] ) : array