-->

  • PHP ucwords function



    In this blog, we will teach you about PHP ucwords() function. Basically we have also teach about basics of PHP 7 . so, you will go to our previous Blog for learn about PHP and for your kind information we also have a YouTube channel, which we continuously uploaded videos of HTML, CSS, PHP and Tech Videos. so please subscribe to our YouTube channel.


    YouTube Channel :-  Kumar Atul Jaiswal



    PHP Ucwords() Function

    The PHP ucwords() function returns string converting first character of each word into uppercase.


    Syntax

    string ucwords ( string $str)



    Example 

    <!DOCTYPE html>
    <html>
    <head>

    <title> PHP  Ucwords Function </title>

    </head>
    <body>

    <h1> </h1>


    <?php


    $str =  "my name is kumar atul jaiswal";

    echo ucwords $str );

    echo "<br>";

    $str2 =  "The PHP ucwords() function returns string converting first character of each word into uppercase.";

    echo ucwords $str2 );

    echo "<br>";





    ?>




    </body>
    </html>







    Output 


    My Name Is Kumar Atul Jaiswal

    The PHP Ucwords() Function Returns String Converting First Character Of Each Word Into Uppercase.











    NOTE :- Video on This Topic :- Soon





    Have a Nice Stay Here : - )


  • 0 comments:

    Post a Comment

    For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.