PHP Classes

IsSetAnd: Assign value depending on array entry conditions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 44%Total: 284 All time: 7,564 This week: 455Up
Version License PHP version Categories
issetand 1.1MIT/X Consortium ...5PHP 5, Language
Description 

Author

This class can be used to assign value depending on array entry conditions.

It can check the value of an array entry and test one of several possible conditions.

The class returns the entry value if condition is satisfied, otherwise it returns NULL.

Currently it supports test conditions to verify if the array entry is set, is equal or different from another value, is a string with certain types of characters, is an array, compare with numeric values, etc..

Innovation Award
PHP Programming Innovation award nominee
February 2011
Number 6


Prize: One downloadable e-book of choice by O'Reilly
Web applications often need to test the values of associative arrays, like for instance the GET and POST variables.

This class can simplify the testing of such array entries by performing different types of common tests and returning special values when the tested condition are verified.

Manuel Lemos
Picture of Corey Tisdale
Name: Corey Tisdale <contact>
Classes: 4 packages by
Country: United States United States
Age: ???
All time rank: 1062151 in United States United States
Week rank: 197 Up20 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Plain text file IsSetAnd.php Class The main class file
Accessible without login Plain text file IsSetAndTest.php Example Test of IsSetAnd class, shows example usage

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:284
This week:0
All time:7,564
This week:455Up
User Ratings User Comments (1)
 All time
Utility:58%StarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:3415
 
Your class does not work as expected.
13 years ago (Artur Graniszewski)
32%StarStar