Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ověření vybraného věku
- if (isset($_GET['age']) && isValidAge($_GET['age'])) {
- $age = $_GET['age'];
- } else {
- $age = ACTUAL_AGE;
- }
- function isValidAge($age) {
- if (is_numeric($age) && $age >= ACTUAL_AGE) {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement