<?php
$files = array();
foreach (glob("/www/wwwroot/5.com/*.jpg") as $file) {
$files[] = $file;
}
$ss =str_replace(‘/www/wwwroot/5.com/‘,‘5.com.com/‘,$files);
print_r($ss);
php批量替换数组中的元素值
原文地址:https://www.cnblogs.com/ysbl/p/12264462.html
时间: 2024-10-11 03:33:03