News Feed
Sections




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

DevShed:
Validating Octal and Hexadecimal Values with Filters in PHP 5
July 23, 2009 @ 09:41:34

Continuing their series looking at creating validators for various value types in variables, DevShed has posted the latest tutorial - a look at validating octal and hexidecimal values.

As you know, when it comes to validating incoming data, PHP 5 comes bundled with a powerful set of native functions that allow you to perform all sorts of clever validations on a given variable. [...] In this second chapter of this series, I'm going to discuss how to use the FILTER_VALIDATE_INT filter that you learned in the previous part, this time for validating array elements as well as octal and hexadecimal integers.

Their example loops through an array of values to locate the ones that match the FILTER_VALIDATE_INT filter and echo their value back to the user via a foreach loop.

0 comments voice your opinion now!
tutorial filter hexadecimal octal validate


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Templating with Haml

HowToForge.com: Loops In PHP

Ask About PHP: Codeigniter: Setting up multiple sites on one install

Hasin Hayder's Blog: Complete oAuth script for Twitter and LinkedIn using PECL oAuth Extension

Bhaskar Karambelkar\'s Blog: Prototyping LAMP with WAMP


Community Events





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


community conference zendserver interview laravel tips language voicesoftheelephpant bugfix introduction podcast symfony release developer framework series list deployment library api

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