PHP Classes

File: PHP_toolbucket/SoftMoon/array_ikey_exists.php

Recommend this page to a friend!
  Packages 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: 14 years ago
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;  }

?>