private function isAssocStr($array)
    {
        if(!is_array($array)){
            return false;
        }
        for (reset($array); is_int(key($array));
             next($array)) {
            if (is_null(key($array)))
                return false;
        }
        return true;
    }
private function isAssocStr($array)
    {
        if(!is_array($array)){
            return false;
        }
        for (reset($array); is_int(key($array));
             next($array)) {
            if (is_null(key($array)))
                return false;
        }
        return true;
    }
private function isAssocStr ( $ array ) { if ( ! is_array ( $ array ) ) { return false ; } for ( reset ( $ array ) ; is_int ( key ( $ array ) ) ; next ( $ array ) ) { if ( is_null ( key ( $ array ) ) ) return false ; } return true ; }
Function to check if an array is association or sequential
@param $array
@return bool
Function to check if an array is association or sequential