📜  php 沿空格分割字符串 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:27.503000             🧑  作者: Mango

代码示例1
// Example 1
$pizza  = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
echo $pieces[0]; // piece1
echo $pieces[1]; // piece2