static function isAssoc($arr)
    {
        if (gettype($arr)!="array") {
            return false;
        }
        if ($arr===null || $arr===array()) {
            return false;
        }
        if (array_keys($arr)===range(0, count($arr)-1)) {
            return false;
        }
        return true;
    }
static function isAssoc($arr)
    {
        if (gettype($arr)!="array") {
            return false;
        }
        if ($arr===null || $arr===array()) {
            return false;
        }
        if (array_keys($arr)===range(0, count($arr)-1)) {
            return false;
        }
        return true;
    }
static function isAssoc ( $ arr ) { if ( gettype ( $ arr ) != "array" ) { return false ; } if ( $ arr === null || $ arr === array ( ) ) { return false ; } if ( array_keys ( $ arr ) === range ( 0 , count ( $ arr ) - 1 ) ) { return false ; } return true ; }
Get wether an array is an associate array

@param array $arr The array that you want to test

@return bool Whether the array is an associate array
Get wether an array is an associate array