News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Cleaning up Array Elements, POST and GET Requests with Filters in PHP 5
September 10, 2009 @ 09:48:07

DevShed has posted the last article in their series on filtering input (from whatever source) in your PHP application. This time the focus is on cleaning up the GET and POST superglobals.

The [filter] library is also capable of cleaning up strings in arrays, as well in data coming from GET and POST requests and cookies. Therefore, this final article of the series will demonstrate how to do this with a few understandable examples, in this manner concluding this quick introduction to working with the PHP 5 filter library.

They show how to use each of the constants referring to these superglobals (INPUT_GET, INPUT_POST, INPUT_REQUEST, etc) to run through each of the values and check them against another filter.

0 comments voice your opinion now!
tutorial filter superglobal extension


blog comments powered by Disqus

Similar Posts

Evan Coury's Blog: Using Zend\Dbs TableGateway & HydratingResultSet to return rows as custom enties

Abou Kone's Blog: Set up JSON action output in CakePHP 1.3

Sameer Borate: Debugging Laravel with MonoLog and FirePHP

Matthew Weier O'Phinney's Blog: ZF2 Forms in Beta5

Cake Baker's Blog: A simple SOAP example


Community Events

Don't see your event here?
Let us know!


development wordpress community laravel5 release language unittest middleware series library interview laravel conference opinion podcast voicesoftheelephpant introduction extension api framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework