我有以下功能:
function remove() { $value_1 = "Patrick%20Kaka%20M"; $value_2 = "%"; $value_3 = " "; $new_value = str_replace($value_3, $value_2, $value_1); echo 'New value is : .... '.$new_value.'
'; }
我希望值1输出为Partick Kaka M,但它仍然失败.请告知我如何很好地实施它.
使用 urldecode()
echo urldecode('Patrick%20Kaka%20M');