Is it correct to create a variable within an if?
In the code below, you create a variable inside the if, and avoid using the same filter twice.
if($id = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT)):
/* Código */
endif;
What do...
asked by
06.04.2016 / 22:02