ITPub博客

首页 > IT职业 > IT图书 > php常用字符串函数,数组函数

php常用字符串函数,数组函数

IT图书 作者:undefined 时间:2021-09-09 10:06:41 0 删除 编辑
php常用字符串函数:
in_array --判断元素是否存在于数组
array_multisort --对多维数组排序
array_slice --截取返回数组选定的部分
array_column --返回数组某一列的值
array_sum --计算数组所有值的和
array_unique --去除数组重复的值
array_values --返回数组所有的值
array_merge --合并数组
查看更多链接:http://www.runoob.com/php/php-ref-array.html
php常用数组函数:
explode --字符串打散成数组
implode --数组转化为字符串
str_replace --替换字符
str_split --把字符串分割到数组
substr_count --计算子字符串在字符串出现的次数
substr --截取字符串strlen --返回字符串长度
number_format --返回千分位
echo print_r --输出字符串
查看更多:http://www.w3school.com.cn/php/php_ref_string.asp



作者:啦啦啦啦96
链接:https://www.jianshu.com/p/536689de74e6


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2349/viewspace-2816585/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: hdp sandbox安装
请登录后发表评论 登录
全部评论

注册时间:2019-04-16

  • 博文量
    124
  • 访问量
    677