search the sign from end of a string
Posted: Mon Oct 13, 2008 10:00 pm
I ve to search the / (slash ) from the end in this url address: http://localhost/Projects/admin/uploadlist.php and change it to http://localhost/Projects/admin/resized/uploadlist.php , so first need to find the / and then add resized/ to it , can any one help me?
i ve found this but not helping me ;
$url= 'http://localhost/Projects/admin/uploadlist.php ';
$newurl= strstr($url, '/');
i ve found this but not helping me ;
$url= 'http://localhost/Projects/admin/uploadlist.php ';
$newurl= strstr($url, '/');