Adam 2009-02-09
Documentation » Getg_arg
Gets query argument value for current node's query
g_arg('tag') => 'help' for http://www.myserver.com/doc?tag=search
string g_arg( [string $key = false, mixed $default = false] )
Parameters
- string $key Argument name
- mixed $default Default value to return if the specified argument does not exist in the query
Returns
- string Value of specified argument, or default value if it does not exist
