Break a string into an array:
<?php
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));
?>
by გიორგი ბაკაშვილი
4 years ago
PHP
String
PHP official doc
1
Pro tip: use ```triple backticks around text``` to write in code fences