

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
PHP – Make an upper case string using mb_strtoupper()
In PHP, mb_strtoupper() is an inbuilt function that is used to change a given string to upper case.
Syntax
string mb_strtoupper(str $string, str $encoding)
Parameters
mb_strtoupper() accepts two parameters: $string and $encoding.
$string− The string being uppercased.
$encoding− This parameter is the character encoding. If it is absent or null, then the internal character encoding value will be used.
Return Values
string with all alphabetic characters converted to uppercase.
Example
<?php $string = "Hello World!, Welcome to online tutorials"; $string = mb_strtoupper($string); echo $string; ?>
Output
It will convert the given string to upper case.
HELLO WORLD!, WELCOME TO ONLINE TUTORIALS
- Related Questions & Answers
- PHP – Make a lower case string using mb_strtolower()
- strtoupper() function in PHP
- How to convert a string into upper case using JavaScript?
- Convert a C++ String to Upper Case
- How to convert Lower case to Upper Case using C#?
- How to convert Upper case to Lower Case using C#?
- How to transform List string to upper case in Java?
- PHP – Case folding in a string using mb_convert_case()
- Moving all Upper case letters to the end of the String using Java RegEx
- MySQL Query to change lower case to upper case?
- Converting to upper case in Java.
- Program for converting Alternate characters of a string to Upper Case.
- C program to convert upper case to lower and vice versa by using string concepts
- How do I make my string comparison case insensitive?
- How to check if a string contains only upper case letters in Python?
Advertisements