What's better, isset or not?
isset, php
Solution
It is a good practice to use `isset` for the following reasons:
- If `$_POST['var']` is an empty string or `"0"`, `isset` will still detect that the variable exists.
- Not using isset will generate a notice.
Problem
Is there any speed difference between ``` if (isset($_POST['var'])) ``` or ``` if ($_POST['var']) ``` And which is better or are they the same?