x
 
<!DOCTYPE html>
<html>
<body>
<?php
$find = array("HELLO","WORLD");
$replace = array("B");
$arr = array("Hello","world","!");
print_r(str_ireplace($find,$replace,$arr));
?>
  
</body>
</html>