strtolower_PHP strtolower()函数与示例

水深无声 2023-03-05 13:26 91阅读 0赞

strtolower

PHP strtolower()函数 (PHP strtolower() function)

strtolower() function is a string function, it accepts the string and returns an lowercase string.

strtolower()函数是一个字符串函数,它接受该字符串并返回小写字符串。

Syntax:

句法:

  1. strtolower(string);

Example:

例:

  1. Input: "This is my COMPUter!"
  2. Output: "this is my computer!"

PHP code:

PHP代码:

  1. <?PHP
  2. $str = "This is my COMPUter!";
  3. echo (strtolower($str));
  4. ?>

Output

输出量

  1. this is my computer!

翻译自: https://www.includehelp.com/php/strtolower-function-with-example.aspx

strtolower

发表评论

表情:
评论列表 (有 0 条评论,91人围观)

还没有评论,来说两句吧...

相关阅读