MB_STRTOLOWER(3) 1 MB_STRTOLOWER(3)mb_strtolower - Make a string lowercaseSYNOPSIS
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 widthSYNOPSIS
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)