...

View Full Version : preg_match



xiaodao
10-28-2007, 06:59 PM
Hello

my current string is

$add="../images/uploads/haha.jpg";

how can i preg_match to change the above to

$add="../images/thumbs/haha.jpg";


Thanks

shyam
10-28-2007, 07:23 PM
$add = preg_replace('/\/uploads\//', '/thumbs/', $add);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum