Page 1 of 1

sigh...please implement in forum:

Posted: Sat Jul 12, 2003 7:05 pm
by redhair

Code: Select all

<?php
$message = preg_replace("/Newbie/", "5 year old, and coulndt find the manual", $message );
?>

Posted: Sat Jul 12, 2003 10:26 pm
by qartis
For such a simple regex, you'd be better off using the quicker and simpler str_ireplace

Code: Select all

$forms[] = "newbie";
$forms[] = "noob";
$forms[] = "noobie";
$forms[] = "n00b";
$forms[] = "n00bie";
$message = str_ireplace($forms,"5 year old who has searchophobia",$message);
:)

Posted: Sat Jul 12, 2003 11:01 pm
by m3mn0n
lmao


May i suggest carrying this in your sig, it might help...



Image