不固定值替換

<?php

$arr = 20;
$data = str_replace(array(10,20,30,40),array("blue","red","green","yellow"),$arr);


print_r($data);
相關文章
相關標籤/搜索