摘要: array_count_values array_count_values() 函数用于统计数组中所有值出现的次数。 本函数返回一个数组,其元素的键名是原数组的值,键值是该值在原数组中出现的次数。 示例: function arrayCountValues() { $data = ['a', 'b' 阅读全文
posted @ 2022-03-19 14:51 幽篁晓筑 阅读(44) 评论(0) 推荐(0) 编辑
摘要: str_repeat str_repeat() 函数把字符串重复指定的次数。 示例: function strRepeat() { echo str_repeat("*", 5); // ***** } 阅读全文
posted @ 2022-03-19 14:48 幽篁晓筑 阅读(38) 评论(0) 推荐(0) 编辑