note 72491 added to function.substr-replace

From: Date: Sun, 21 Jan 2007 04:29:32 +0000
Subject: note 72491 added to function.substr-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-121975@lists.php.net to get a copy of this message
i am trying to remove the page name from a url for instance i have: http://nl2.php.net/manual/add-note.php and i wanto remove everything from the right-hand side until the / so i am left with: http://nl2.php.net/manual/ i thought i could use substr_replace but cant because every url is different so i cannot specify a number of characters to remove... i just need it to remove any characters to the right of the last / HOW DO I DO IT !!! aaaaahhhh ... been trying for hours.... somebody please help! ---- Server IP: 194.109.193.94 Probable Submitter: 83.98.236.186 ---- Manual Page -- http://www.php.net/manual/en/function.substr-replace.php Edit -- https://master.php.net/note/edit/72491 Del: integrated -- https://master.php.net/note/delete/72491/integrated Del: useless -- https://master.php.net/note/delete/72491/useless Del: bad code -- https://master.php.net/note/delete/72491/bad+code Del: spam -- https://master.php.net/note/delete/72491/spam Del: non-english -- https://master.php.net/note/delete/72491/non-english Del: in docs -- https://master.php.net/note/delete/72491/in+docs Del: other reasons-- https://master.php.net/note/delete/72491 Reject -- https://master.php.net/note/reject/72491 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121975) next »