Login   Register  
PHP Classes
elePHPant
Icontem

File: PHP_toolbucket/SoftMoon/array_ikey_exists.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Joseph  >  Rainbow Maker  >  PHP_toolbucket/SoftMoon/array_ikey_exists.php  >  Download  
File: PHP_toolbucket/SoftMoon/array_ikey_exists.php
Role: Auxiliary script
Content type: text/plain
Description: PHP support function
Class: Rainbow Maker
Create transparent gradient images
Author: By
Last change:
Date: 2012-02-12 21:38
Size: 325 bytes
 

Contents

Class file image Download
<?php

Function array_ikey_exists($KEY$A)  { if (!is_array($A) or !is_string($KEY) and !is_numeric($KEY))  return FALSE;
    
$KEY=strtolower((string)$KEY);  //allowing numeric keys gives this function universal flexibility
    
foreach ($A as $key => $d)  {if ($KEY===strtolower((string)$key))  return $key;}
    return 
FALSE;  }

?>