arrays - How do I make each word in a string a variable with PHP -
how make each word separate variable if string contains 3 words? searched , searched have found tutorial on how this. appreciated.
php's explode
should looking for.
http://php.net/manual/en/function.explode.php
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza);
Comments
Post a Comment