-
What will be the output of the following PHP code?
<?php
$string = "Hello Interview Mania. It's a knowledgeable website.";
print_r (explode(" ",$string));
?>
-
-
Array
(
[0] => Hello
[1] => Interview
[2] => Mania.
[3] => It's
[4] => a
[5] => knowledgeable
[6] => website.
) -
Array
(
[0] => Hello
[1] => Interview
[2] => Mania.
) - Hello Interview Mania. It's a knowledgeable website.
- Error
- None of these
-
Correct Option: A
The explode() function breaks a string into an array.