str_replace(“被替换的元素”,“用来替换的元素”,替换开始的下标) str_repeat($str,重复的次数) 转载于:https://www.cnblogs.com/yaomengli/p/6899440.html