PDA

View Full Version : str_ireplace() alternate for versions of PHP < 5 ?


cyphix
02-01-2005, 11:47 AM
Any ideas what I could use in place of str_ireplace seeing as this is only a PHP 5 function?

Thanks!

Ultragames
02-01-2005, 04:31 PM
if I remember right, str_replace is a simplified version of preg_replace.

See here (http://us4.php.net/manual/en/function.preg-replace.php)

Ultragames
02-01-2005, 04:36 PM
Note: The 'i' in 'ireplace' can be simulated in preg_replace with an i after the last / (unless there is a preg_ireplace...?)

cyphix
02-01-2005, 05:45 PM
Thanks for the tip about the "i" after the last "/". :thumbsup: