News Feed
Sections




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

DevShed:
Checking Boolean Values with Filters in PHP 5
July 30, 2009 @ 09:09:12

DevShed continues their look at filtering in PHP5 applications with this third part covering checks on boolean values.

As I said before, the filter extension can be used for more than validating integers, since it provides the required functionality to checking other data types. Thus, in the next few lines I'm going to discuss how to use the extension for validating Boolean values.

They give a few lines of example code to show how different values (like "1" versus 1 and "true" versus true) are affected by PHP's dynamic typing.

0 comments voice your opinion now!
boolean value tutorial filter extension


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Multi-Language Support in CodeIgniter

IBM developerWorks: What's new in PHP V5.2, Part 4: Using the new ZIP extension

IBM developerWorks: Use Ajax with PHP and DB2 9 - Xajax

Christoph Dorn's Blog: FirePHP and Zend Framework 1.6

Padraic Brady's Blog: ext/snarl: PHP interface to the Windows Snarl Notification Tool API


Community Events





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


series language opinion introduction community library security symfony voicesoftheelephpant composer tool interview conference list framework version podcast artisanfiles release laravel

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