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

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 135
    Comment on it

    What is use of ucfirst() in php ?

    The ucfirst() function is used for converting the first character of a string to uppercase.

    Syntax of ucfirst() function:

    ucfirst(string)
    string is a parameter that is compulsory to given for converting

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

    <?php
    //here call ucfirst() for cconverting string
    echo ucfirst("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: