"> What will be the output of the following PHP code?<?php$title

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    $title = "interview mania founded by manjesh ojha";
    echo ucwords($title);
    ?>
    1. Error
    2. Interview Mania Founded By Manjesh Ojha
    3. interview mania founded by manjesh ojha
    4. Nothing
    5. None of these
Correct Option: B

The ucwords() function capitalizes the first letter of each word in a string. Its prototype follows: string ucwords(string str).



Your comments will be displayed only after manual approval.