$pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2
explode()
Android | Web Programming | 網站程式設計 | HTML | CSS | JavaScript | PHP
Andro Chen 陳俊安的程式重點速記
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2
沒有留言 :
張貼留言