This is getting to me , what i am doing is pulling some info from my sql base , some of the info that is comming out i want to exclude with php , this is what i am using and it works to omit data but only the excat data , is it possibel to add a wildcard that excludes all data say beginning with guest.
$find[] = 'Guest4521';
$replace[] = '';
$text = str_replace($find, $replace, $str);
see what i mean it will omit the data Guest4521 but i want it to omit all data begining with guest.
Any ideas would be very helpful.
edit , almost got it with this but its just removing the Guest bit and not the numbers after it.
$irc18 = preg_replace("/Guest(.*?)/", "", $ircusers);