Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

strtolower(3) [php man page]

STRTOLOWER(3)								 1							     STRTOLOWER(3)

strtolower - Make a string lowercase

SYNOPSIS
string strtolower (string $string) DESCRIPTION
Returns $string with all alphabetic characters converted to lowercase. Note that 'alphabetic' is determined by the current locale. This means that e.g. in the default "C" locale, characters such as umlaut-A (A) will not be converted. PARAMETERS
o $string - The input string. RETURN VALUES
Returns the lowercased string. EXAMPLES
Example #1 strtolower(3) example <?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = strtolower($str); echo $str; // Prints mary had a little lamb and she loved it so ?> NOTES
Note This function is binary-safe. SEE ALSO
strtoupper(3), ucfirst(3), ucwords(3), mb_strtolower(3). PHP Documentation Group STRTOLOWER(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

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SIMPLE HTTP PROXY SERVER CHECKER (Completed)

Simple Http Proxy Server Checker Script with curl mirror proxies-scripts/proxc at master * Anoncheg1/proxies-scripts * GitHub output in terminal HTTP, HTTP Connect (HTTPS not supported) command line: proxc filename where filename is file like 119.110.69.185:8080 119.235.16.41:8080... (4 Replies)
Discussion started by: 654321
4 Replies

2. Shell Programming and Scripting

How to fix my IMDB Script

Hello, I am using IMDB bot file for my movie site.. But I get this message like this---Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in... (2 Replies)
Discussion started by: lg2013
2 Replies

3. Shell Programming and Scripting

Sed/replace help

How can we empty or replace with null, following block of code (within the php quotes including the quotes) from inside a file. *** some other data above this code <? #317008# ... (5 Replies)
Discussion started by: fed.linuxgossip
5 Replies

4. UNIX for Dummies Questions & Answers

Deleting from .php files

Hello, I have infected .php files on my server with some code (example at the bottom,code marked red must be deleted, all .php files were infected with this same code). I was wondering how can i delete the first <?php ?> with that all code inside ?:confused: I already tried with : find . -name... (20 Replies)
Discussion started by: Corlex31
20 Replies

5. What is on Your Mind?

New Icons Coming from Font Awesome

Finally making some progress on getting rid of the 10 year old buttons with modern day fonts and icons thanks to a responsive web design tutorial by Brad Traversy who's video pointed me to Font Awesome. The buttons and icons were pretty easy to implement but it too me a number of hours... (39 Replies)
Discussion started by: Neo
39 Replies

6. What is on Your Mind?

Man Page Reformatted on Mobile (and Desktop)

After experimenting with various Linux utilities like man2html and mandocs and other formats and software, none of them worked as well (or as clear) as by formatting by using PHP preg_replace() to add some CSS elements (wrappers) and then using the <pre> element combined with using jQuery to... (1 Reply)
Discussion started by: Neo
1 Replies

7. Web Development

Creating a Simple Linux Dashboard with Oracle Jet

Creating a Simple Linux Dashboard with Oracle Jet - Part 1 the Server Side PHP Code Creating a simple Linux dashboard with Oracle Jet is easy and fun. It's simple to create a dashboard to monitor your Linux server using Oracle JET. The sky is the limit with indicators and gauges. ... (7 Replies)
Discussion started by: Neo
7 Replies