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 Boolean Values and Float Numbers with Filters in PHP 5
August 06, 2009 @ 07:51:05

Continuing their "validation in PHP" series, DevShed has posted this new tutorial looking at the validation of boolean values and float numbers in PHP5 applications (with the filter extension).

As you learned in previous parts of the series, the filter extension permits you to validate elements of a given array very easily as well. Therefore, in this fourth chapter I'm going to explain how to check for Boolean values in arrays, as well as how to validate float numbers using another handy filter.

the examples are pretty simple, running a filter_var on the values to check if it's a boolean and to require that the set of values comes in as an array.

1 comment voice your opinion now!
tutorial boolean filter extension float


blog comments powered by Disqus

Similar Posts

PHPMaster.com: REST - Can You do More than Spell It? Part 3

DevShed: Additional Methods for Using SQLite with PHP 5

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 1)

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 2 - Pluggable Applications

Patrick van Kouteren: CloudVPS object store beta introduction


Community Events





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


threedevsandamaybe developer refactor testing install laravel framework series symfony2 unittest introduction opinion podcast code language community interview list release api

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