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);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments