1
我一直在尋找使用或條件在PHP中str_replace使用數組時。 例如:目前下面是我的代碼段中的一些代碼str_replace行。或條件在PHP與str_replace
$header['model'] = str_replace(array('myexample', 'i'), '', $header['model']);
我可以使用或條件如下
$header['model'] = str_replace(array('myexample', 'i') || array('myexample1', 'i'), '', $header['model']);
任何幫助/建議,請。
謝謝。