NYCPHP Meetup

NYPHP.org

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

Daniel Convissor danielc at analysisandsolutions.com
Sun Nov 18 22:31:11 EST 2007


On Tue, Nov 13, 2007 at 12:53:59PM -0500, dann wrote:
> 
> $page_index = ctype_digit($_GET['page']) ? $_GET['page'] : $default_page;

That produces a notice if the variable isn't set.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list