php explode to get last integer from url -


i trying last integer in url using php explode gives last value after / dont know how last integer before /

my url

    http://way2enjoy.com/touch/w2et/quotesalphalist.php?page=124/abcd 

i interested in getting 124 above url.

i can last value abcd below explode code dont know how 124

    $c=explode("/",$_server[ 'request_uri' ]);  $city=end($c);  

please suggest how 124 integer above url.please note 124 ma y change number number , before last /

$c = explode('=',$_server[ 'request_uri' ]); $result = explode('/', end($c)); echo $result[0]; 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -