explode strings and push into array php code example Example: php split string explode(" ","Geeks for Geeks")