?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));
?>
<?php
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));
?>
Answer & Solution
Correct Answer:
Option
B
The explode() function breaks a string into an array.
Join the Discussion
Login to post a comment or share your explanation.
Login