lucilue2003 Posted January 18, 2004 Share Posted January 18, 2004 this is the link: <a href=\"index.php?catid=$catid&subid=Business_general/CRM-news\"> CRM</a> $subid = $HTTP_GET_VARS['subid'] ; -- //$subid="Business_general/CRM-news" //How do i get rid of the all characters before the and including / -- thanks Link to comment Share on other sites More sharing options...
user99999999 Posted January 18, 2004 Share Posted January 18, 2004 list($subid1) = explode("/", $subid,1); echo $subid1; list($subid1) = preg_split('/\//',$subid,1); echo $subid1; Link to comment Share on other sites More sharing options...
lucilue2003 Posted January 18, 2004 Author Share Posted January 18, 2004 That did not work that well. here is the output i got: Business_general/CRM-news Business_general/CRM-news all i want is CRM-news thanks. Link to comment Share on other sites More sharing options...
user99999999 Posted January 19, 2004 Share Posted January 19, 2004 Opps... list($subid1,$subid2) = explode("/", $subid); echo $subid2; list($subid1,$subid2) = preg_split('/\//',$subid); echo $subid2 ; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.