adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
    function string($title);
    {
        $title = ucwords($title);
        echo lcfirst($title);
    }
    string("welcome to compsciedu site");
?>

a.

Welcome to compsciedu site

b.

Welcome To Compsciedu Site

c.

WELCOME TO COMPSCIEDU SITE

d.

welcome To Compsciedu Site

Posted under PHP

Answer: (d).welcome To Compsciedu Site

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following PHP code ?

Similar Questions

Discover Related MCQs