10-20-2007, 04:07 PM
|
#6 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
use preg_replace() instead of preg_match()
example:
PHP Code:
<?php
$string = 'cheesedwawo24mlkdj;ao8';
echo preg_replace("/^cheese/","", $string);
?>
will return "dwawo24mlkdj;ao8"
hope that helps :)
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|