Teddy D

Generation

translateTue, 31 Jan 2023

explode string with promos php

$string = "La maison est belle"; $array = explode(" ", $string); var_dump($array); /* array(3) { [0]=> string(3) "La" [1]=> string(7) "maison" [2]=> string(5) "est" [3]=> string(6) "belle" } */

Questions about programming?Chat with your personal AI assistant