Konu
preg_replace ile ilgili bir soru
24-06-2010, 05:07:55
#2
mustafa90
Umarım doğru anlamışımdır;
Alıntı
$str = 'http://img196.imageshack.us/img196/7449/playery.swf';
$result = preg_replace('/.*\/(.*)$/s', 'http://site.com/js/$1', $str);
echo $result;