ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.