- Forums
- PHP
- How To Use Explode() Function In PHP With Example Code
i wrote this page to show you how to use explode() function in php to create an arrray from a string. i show you some example code i wrote so you can learn what i a mean on how to use the explode function from PHP [1046], Last Updated: Sat May 18, 2024
beginer tutorial
Wed Jun 20, 2007
2 Comments
3548 Visits
can you tell how i can use php explode() function?
if i have this for example, how can i display the array in a loop?
<?
$string = "simple sentence with five words";
$words= explode(" ", $string );
?>