The code will return an array with 2 elements.
$str = "Hello world";
print_r (explode(" ",$str));
Return:
Array ( [0] => Hello [1] => world )
The code will return a string containing the elements of the array.
$arr = array('Hello','World!');
echo implode(" ",$arr);
Return:
Hello World!
by saba chankvetadze
3 years ago
PHP
PHP official doc
0
Pro tip: use ```triple backticks around text``` to write in code fences