Home » PHP

PHP strtoupper() function with example

PHP strtoupper() function: Here, we are going to learn about the strtoupper() function with example.
Submitted by IncludeHelp, on February 03, 2019

PHP strtoupper() function

strtoupper() function is a string function it accepts the string and returns an uppercase string.

Syntax:

    strtoupper(string);

Example:

    Input: "This is my COMPUter!"
    Output: "THIS IS MY COMPUTER!"

PHP code:

<?PHP
    $str = "This is my COMPUter!";
    
    echo (strtoupper($str));
?>

Output

THIS IS MY COMPUTER!





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.