Home > AI > Language > PHP >

explode

$pizza  = "piece1_piece2_piece3 piece4 piece5 piece6";
$pieces = explode("_", $pizza);
echo $pieces[0]; // piece1

Leave a Reply