?
What will be the output of the following PHP code ?
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");
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login