PHP – convert parameter to boolean
In short, here is the snippet converting parameter from POST/GET to boolean: if (isset($_GET['debug'])) { $DEBUG = filter_var($_GET['debug'], FILTER_VALIDATE_BOOLEAN); }
In short, here is the snippet converting parameter from POST/GET to boolean: if (isset($_GET['debug'])) { $DEBUG = filter_var($_GET['debug'], FILTER_VALIDATE_BOOLEAN); }
My graduation work is a project called Państwa Miasta as a big base with words for specific categories. Name Państwa Miasta is from the paper game, very popular in many…