a global function for url query
Posted
by phpExe
on Stack Overflow
See other posts from Stack Overflow
or by phpExe
Published on 2010-06-12T21:31:08Z
Indexed on
2010/06/12
21:42 UTC
Read the original article
Hit count: 144
php
I have written a function:
function url_query(){
if (is_numeric($_GET['cmd'])) {
$get = $_GET['cmd'];
}
return $get;
}
but I want that this function be global. This function works only for eg.
index.php?cmd=...
Can I revise this function to use for index.php?page=... and index.php?catID=... etc? Thanks
© Stack Overflow or respective owner