摘要:
PHP explode() 函数 explode() 函数把字符串分割为数组。语法explode(separator,string,limit)参数 描述separator 必需。规定在哪里分割字符串。string 必需。要分割的字符串。limit 可选。规定所返回的数组元素的最大数目。 例子在本例 阅读全文
posted @ 2022-09-15 13:29
Rukh
阅读(1630)
评论(0)
推荐(0)
摘要:
PHP strtoupper() 函数把字符串转换为大写 例子echo strtoupper("Hello WORLD!");输出:HELLO WORLD! PHP strtolower() 函数把字符串转换为小写 例子echo strtolower("Hello WORLD!");输出:hello 阅读全文
posted @ 2022-09-15 13:29
Rukh
阅读(67)
评论(0)
推荐(0)
摘要:
单引号内部的变量不会执行 双引号会执行 如 $name = 'hello'; echo "the $name"; 会输出 the hello 而如果是单引号 $name = 'hello'; echo 'the $name'; 会输出 the $name 主要区别就是这个。 阅读全文
posted @ 2022-09-15 13:28
Rukh
阅读(32)
评论(0)
推荐(0)
摘要:
PHP函数获取当前文件的绝对路径 以下是PHP代码 echo __FILE__ ; 将这句代码写入PHP文件后,运行即可显示出当前文件所处绝对路径 阅读全文
posted @ 2022-09-15 13:27
Rukh
阅读(578)
评论(0)
推荐(0)

浙公网安备 33010602011771号