i have to make a new php script to grab the last number of a url
for example
Code: Select all
http://www.example.com/index.php?id=34i want to make this script but i dont have much knowledge of php
plz tell me how to start writng this script
thanks
Moderator: General Moderators
Code: Select all
http://www.example.com/index.php?id=34Code: Select all
<?php
$foo = null;
if( isset( $_REQUEST[ "id" ] ) ) {
$foo = $_REQUEST[ "id" ];
}
?>