php如何将字符串转换成小写_后端开发

php如何将字符串转换成小写_后端开发,第1张

如何查找yum安装的php路径_后端开发

查找yum安装的php路径的方法:直接执行【php -i | grep "Loaded Configuration File"】命令即可。


使用yum安装php后,可以设置开机自启,命令为【systemctl enable php-fpm】。


php将字符串转换成小写的方法是:可以通过strtolower()函数来实现。


该函数可以把字符串转换成小写。


函数语法:【strtolower(string)】,具体使用方法如【strtolower($string);】。


php如何将字符串转换成小写_后端开发,第2张

(推荐教程:php教程)

函数介绍:

strtolower() 函数把字符串转换为小写。


语法:

php怎么去除数组中的重复值_后端开发

php去除数组中的重复值的方法:可以通过array_unique()函数来实现。


该函数用于移除数组中重复的值,并返回过滤后的数组,语法格式为:【array_unique(array)】。


strtolower(string)

参数介绍:

  • string 必需参数。


    规定要转换的字符串。


返回值:

返回转换为小写的字符串。


代码实现:

<?php
$string = "Learn PHP string functions at jb51.net";
$lower = strtolower($string);
$upper = strtoupper($string);
print("$lower\n");
print("$upper\n");
print("\n");
?>

以上就是php如何将字符串转换成小写的详细内容,更多请关注ki4网其它相关文章!

php如何实现链表?_后端开发

php实现链表的方法:首先定义一个节点类,代码为【function __construct($val=null)】;然后实现链表的实现类,代码为【function_construct $this->dummyhead = new Nod】。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/562084.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2020-07-10
下一篇 2020-07-10

发表评论

登录后才能评论

评论列表(0条)

保存