Home / PHP Tips Generated By ChatGPT / Splitting Strings into Arrays in PHP Split a string into an array by a delimiter using explode(). Source Code $parts = explode(" ", "Hello World PHP"); print_r($parts);