Skip to content
Advertisement

Tag: isinteger

PHP is_int is not performing as expected

I have a page (index.php) that takes a GET variable from the URL and checks it for security purposes. This GET variable should only be an integer. I am using the following code to check this, but in all instances, integer or not, I get the index.php page. The header never appears. After this code, the rest of the page

Advertisement