To extend the answer of extract , you can cut off only the $ _POST entries you need:
$vars = array_intersect_key($_POST, array_flip(array("email", "sessionKey", "page", "ipp"))); // and then this replaces the isset() check and the extraction if (count($vars) == 4) { extract(array_map("htmlspecialchars", $vars)); }
mario source share