ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code ?
<?php
    function uppercase($string)
    {
        echo ucwords($string);
    }
    $wow = "uppercase";
    $wow("Time to live king size");
?>

Answer & Solution
Correct Answer: Option D
The ucwords() function converts the first character of each word in a string to uppercase.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.