How to check if $_GET
is empty?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Easy.
I would use the following if statement because it is easier to read (and modify in the future)
Just to provide some variation here: You could check for
it is completely identical to testing
$_GET
.Here are 3 different methods to check this
i guess the simplest way which doesn't require any operators is