Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mb_strtolower(3) [php 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)

Check Out this Related Man Page

MB_STRIMWIDTH(3)							 1							  MB_STRIMWIDTH(3)

mb_strimwidth - Get truncated string with specified width

SYNOPSIS
string mb_strimwidth (string $str, int $start, int $width, [string $trimmarker = ""], [string $encoding = mb_internal_encoding()]) DESCRIPTION
Truncates string$str to specified $width. PARAMETERS
o $str - The string being decoded. o $start - The start position offset. Number of characters from the beginning of string. (First character is 0) o $width - The width of the desired trim. o $trimmarker - A string that is added to the end of string when string is truncated. o $encoding -The $encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used. RETURN VALUES
The truncated string. If $trimmarker is set, $trimmarker is appended to the return value. EXAMPLES
Example #1 mb_strimwidth(3) example <?php echo mb_strimwidth("Hello World", 0, 10, "..."); // outputs Hello W... ?> SEE ALSO
mb_strwidth(3), mb_internal_encoding(3). PHP Documentation Group MB_STRIMWIDTH(3)
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to call pl/sql in unix script

sample code as following: test_sql(){ #test#echo test_sql str=`$ORACLE_BIN/sqlplus -s $user/$passwd <<EOM set verify off set heading off set feedback off #--------start pl/sql { DECLARE CURSOR pah_cs IS select id from table where letter = 'abcd';... (6 Replies)
Discussion started by: YoYo
6 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

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

12. Shell Programming and Scripting

Linux Shell: how to check a string whether meets some conditions

Hi, guys. In Linux Shell script, how can I check a string whether meets some conditions. e.g.: If a string str must start with a underscore or a alphabet, and it must contains at least one lowercase, one uppercase, one numeric and one punctuation, and its length must be more than 8 characters... (2 Replies)
Discussion started by: franksunnn
2 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