News Feed
Jobs Feed
Sections




News Archive
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

Court Ewing's Blog: Forget Concatenation; Format your strings!

Zend Developer Zone: ZendCon Sessions Episode 16: PECL Picks - Extensions to make your life better

PseudoCoder.com: How To Really Use Xdebug To Speed Up Your App

Sebastian Bergmann's Blog: Getting Started with Hamcrest

DevShed: Building a More Capable Validation Helper Class


Community Events











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


database release series opinion testing development composer conference object introduction example interview framework zendframework2 community code podcast functional language tool

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