Php to convert all strings to uppercase or lowercase _ PHP Tutorial

Source: Internet
Author: User
Php converts all strings to uppercase or lowercase letters. Php converts all strings to uppercase/lowercase letters. This article describes how php converts all strings to uppercase/lowercase letters, it involves strtolower and strtoupper in php. php converts all strings to uppercase or lowercase letters.

This article describes how php converts all strings to uppercase or lowercase letters, and describes how to use strtolower, strtoupper, and other functions in php. For more information, see

This example describes how php converts all strings to uppercase or lowercase letters. Share it with you for your reference. The specific analysis is as follows:

In php, you can use the strtolower and strtoupper functions to convert all English characters in the string to lowercase or uppercase letters.

?

1

2

3

4

5

6

7

8

$ String = "Learn PHP string functions at jb51.net ";

$ Lower = strtolower ($ string );

$ Upper = strtoupper ($ string );

Print ("$ lower \ n ");

Print ("$ upper \ n ");

Print ("\ n ");

?>

The output result is as follows:

?

1

2

Learn php string functions at jb51.net

Learn php string functions at JB51.NET

I hope this article will help you with php programming.

This article describes how php converts all strings to uppercase or lowercase letters, including strtolower and strtoupper in php...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.