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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -