NYCPHP Meetup

NYPHP.org

[nycphp-talk] Extracting an int from a query string.

Brian D. brian at realm3.com
Tue Nov 13 09:59:48 EST 2007


http://us.php.net/intval

You can use:
$page_index = intval($_GET['page']);

Returns 0 if it's not a valid integer.

- Brian Dailey

-- 
realm3 web applications [realm3.com]
freelance consulting, application development
(423) 506-0349



More information about the talk mailing list