Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mb_strtoupper(3) [php man page]

MB_STRTOUPPER(3)							 1							  MB_STRTOUPPER(3)

mb_strtoupper - Make a string uppercase

SYNOPSIS
string mb_strtoupper (string $str, [string $encoding = mb_internal_encoding()]) DESCRIPTION
Returns $str with all alphabetic characters converted to uppercase. PARAMETERS
o $str - The string being uppercased. o $encoding -The $encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used. RETURN VALUES
$str with all alphabetic characters converted to uppercase. UNICODE
For more information about the Unicode properties, please see http://www.unicode.org/unicode/reports/tr21/. By contrast to strtoupper(3), 'alphabetic' is determined by the Unicode character properties. Thus the behaviour of this function is not affected by locale settings and it can convert any characters that have 'alphabetic' property, such as a-umlaut (a). EXAMPLES
Example #1 mb_strtoupper(3) example <?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtoupper($str); echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO ?> Example #2 mb_strtoupper(3) example with non-Latin UTF-8 text <?php $str = "Txiotn a nE Baos unuvn yn, dpaokeCei unp vw0po kuvs"; $str = mb_strtoupper($st_, 'UTF-8'); _ _ _ _ echo $str; // Prints TXI>TH A/TTHH BAO> YHMNH | H, /PA>KE/EI YTTP NOOPO KYN> ?> SEE ALSO
mb_strtolower(3), mb_convert_case(3), strtoupper(3). PHP Documentation Group MB_STRTOUPPER(3)

Check Out this Related Man Page

MB_STRTOLOWER(3)							 1							  MB_STRTOLOWER(3)

mb_strtolower - Make a string lowercase

SYNOPSIS
string mb_strtolower (string $str, [string $encoding = mb_internal_encoding()]) DESCRIPTION
Returns $str with all alphabetic characters converted to lowercase. PARAMETERS
o $str - The string being lowercased. o $encoding -The $encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used. RETURN VALUES
$str with all alphabetic characters converted to lowercase. UNICODE
For more information about the Unicode properties, please see http://www.unicode.org/unicode/reports/tr21/. By contrast to strtolower(3), 'alphabetic' is determined by the Unicode character properties. Thus the behaviour of this function is not affected by locale settings and it can convert any characters that have 'alphabetic' property, such as A-umlaut (A). EXAMPLES
Example #1 mb_strtolower(3) example <?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtolower($str); echo $str; // Prints mary had a little lamb and she loved it so ?> Example #2 mb_strtolower(3) example with non-Latin UTF-8 text <?php $str = "Txiotn a nE Baos unuvn yn, dpaokeCei unp vw0po kuvs"; $str = mb_strtolower($str, 'UTF-8'); echo $str; // Prints txiotn a nE Baos unuvn yn, dpaokeCei unp vw0po kuvs ?> SEE ALSO
mb_strtoupper(3), mb_convert_case(3), strtolower(3). PHP Documentation Group MB_STRTOLOWER(3)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting to Uppercase

I want to convert string into uppercase string. How can i do that ? Ex: Enter the user name: read name show=upper(name) echo $show --- This output should be the uppercase output. Thanks (3 Replies)
Discussion started by: dreams5617
3 Replies

2. Shell Programming and Scripting

String Manipulation Question....

Say I've got a string like: data1,data2,data3,data4. How would I be able to break up the string, so that I have four variables w/ the values data1 data2 data3 data4. Also, how could I read a string character by character. I know you can read a sentence word by word by using the for var... (8 Replies)
Discussion started by: TheRocket
8 Replies

3. UNIX for Dummies Questions & Answers

question?

Is there any way to use sed and count the number of alphabetic characters in a sentence? (4 Replies)
Discussion started by: brentdeback
4 Replies

4. UNIX for Dummies Questions & Answers

if condition

suppose a name is read how to check whether the name contains only alphabets and space not non-alphabetic characters and special characters (5 Replies)
Discussion started by: manisha_agrawal
5 Replies

5. Programming

parsing string in c

how can i remove the special characters hi iam print the string variable . suppse: while(str!=NULL) printf("******* %s ********** %d ",str,strlen(str)); output as: ****srinu ******** 5 **** phani******** 63 ****srinu ******** 5 **** phani******** 63 so my problem is how can i... (3 Replies)
Discussion started by: phani_sree
3 Replies

6. Shell Programming and Scripting

add not equal in script.

Hi, i just want to print the value which are not equal. I try with $str != ${comp2} but still getting same values. for str in ${comp1}; do i=0 while (( $i < ${#comp2} )); do if } ]]; then print value here. break fi (( i += 1 )) done done... (2 Replies)
Discussion started by: myguess21
2 Replies

7. Shell Programming and Scripting

string checking

lets think str is a variable...how can i check it is pure alphabetic or not for numeric checking i have used echo $str|grep -v ] but the command echo $str|grep -v ] is not working (1 Reply)
Discussion started by: arghya_owen
1 Replies

8. Shell Programming and Scripting

sprintf result on perl

Hello, In perl lang, I have create a string (@str) by sprintf but unfortunately when program printed it out, only I could saw a number like 1. Certainly printf doesn't problem. How I can convert a string that are result of sprintf to a common string format??! Thanks in advance. PLEASE HELP ME. (2 Replies)
Discussion started by: Zaxon
2 Replies

9. Shell Programming and Scripting

awk help

hi guys, I posted one query for which they gave this code..awk 'BEGIN {str=""} {str=str "\47" $0 "\47,"} END {print "db2 export to asdhf del selecct * from where i_vin in ("substr(str,1,length(str)-1) ") with ur"}' filename Here,, \47 represents to ' (special character)...i like to know what... (3 Replies)
Discussion started by: mac4rfree
3 Replies

10. Shell Programming and Scripting

help me! how to solve this question?

Find the first alphabetic letter from the input: Accept a group of upper case alphabetic letters one at a time, ended with a 0, and find and display the first letter in alphabetic order. For example, input of D, G, T, S, V, G, C, K, P should result in C. Any invalid input character (eg. #, $, 3,... (1 Reply)
Discussion started by: sbcvn
1 Replies

11. Shell Programming and Scripting

Uppercase word in PERL

how do i print uppercase words in a string in PERL For example $str=" welcome to UNIX programming" should print UNIX $str="WELCOME to unix programming" should print WELCOME i itried the following /\s+\w+\b/ $str Can u help me in to get a uppercase word in PERL (3 Replies)
Discussion started by: vkca
3 Replies

12. Shell Programming and Scripting

remove non-alphabetic from a match line

Hey all, I want to remove non-alphabetic charecters from the line that have "Products from " for example a line like this: Products from LG (295) should just become like Products fromLG in the file, and then I would delete the remaining and it would be just "LG" tnx (9 Replies)
Discussion started by: Johanni
9 Replies

13. Shell Programming and Scripting

Need help to find total counts in a string

Suppose I have a string " 1 A B C D F 3 F G 3 1 D L D ". Please let me know the command which tells the above string having 3 Ds. echo $str | grep -c "D" It returns only 1 I know the reason but I am looking some command which should give 3. Actually I have a file, which I need to read... (5 Replies)
Discussion started by: sumitc
5 Replies

14. Shell Programming and Scripting

How to uppercase matching line when string found?

Hello, Could you please help me how to search the string in a file, and when found; change the existing line to uppercase in command line? I tried: ?whichcommand? -A "EXT" fileA | awk '{print tolower($0)}' | tee fileB tr command simply converts entire file to uppercase but this is not what... (4 Replies)
Discussion started by: baris35
4 Replies

15. UNIX for Advanced & Expert Users

Support for Unicode in GTK2 and GTK3 file selection box?

I'm on Tiny Core Linux Pure64 10.1. My locale is en_US.UTF-8 and I generally have no trouble with Unicode characters with one exception: When I try to use Unicode characters in GTK applications' file selection box, I get "Invalid file name": http://files.dantas.airpost.net/public/save_file.jpg ... (11 Replies)
Discussion started by: DevuanFan
11 Replies