Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is use of ucwords() function in php.?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 149
    Comment on it

    Definition of ucwords() function

    This function is used for converting the first character of each word in a string to uppercase.

    Syntax of ucwords() function:

    ucwords(string)

    string is compulsory paramere

    You can see below example of ucwords() function in php.

    <?php
    //here call ucwords() for cconverting string
    echo ucwords("well  done");
    ?> 
    

    output will come of above example

    Well Done 

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: