Stattdessen erhalte ich den unveränderten Wert von $data zurück. Irgendwelche Erkenntnisse darüber, warum?
Code: Select all
$data = "there is a dog in the car out back";
$bill = explode(' ', $data);
$bob[0] = "dog";
$bob[1] = "car";
$bob[2] = "back";
$qq = preg_replace("|($bob)|Ui", "ralph" , htmlspecialchars($data));
echo $qq;