PHP is used to determine whether the Get parameter exists. You can use the following method to determine the code to copy: if (is_array ($ _ GET) count ($ _ GET) 0) determine whether the Get parameter {if (isset ($ _ GET [para]) exists to determine whether the required parameter exists. the following method can be used to determine
The code is as follows:
If (is_array ($ _ GET) & count ($ _ GET)> 0) // determines whether the Get parameter exists.
{
If (isset ($ _ GET ["para"]) // determines whether the required parameter exists. isset is used to check whether the variable is set. true or false is returned.
{
$ Para = $ _ GET ["para"]; // Yes
}
}
Example code: if (is_array ($ _ GET) count ($ _ GET) 0) // Determine whether the Get parameter {if (isset ($ _ GET ["para"]) exists. // Determine whether the required parameter exists ,...