View Single Post
Old 08-12-2011, 05:05 AM  
1080p Content
Registered User
 
Join Date: Mar 2010
Posts: 85
Code:
$row2['url'] = $_site_www2.'/folder/'.str_replace('1XXX1_', '', $row2['2_folder']).'-name.ext';
or if the string you want to remove is always same length but different numbers... i.e. "1XYZ1_"...

Code:
$row2['url'] = $_site_www2.'/folder/'.substr($row2['2_folder'], 6).'-name.ext';
1080p Content is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote