public static function is_assoc(array $r){
    $keys = array_keys($r);
    $c = \count($keys);
    for ( $i = 0; $i < $c; $i++ ){
      if ( $keys[$i] !== $i ){
        return 1;
      }
    }
    return false;
  }
public static function is_assoc(array $r){
    $keys = array_keys($r);
    $c = \count($keys);
    for ( $i = 0; $i < $c; $i++ ){
      if ( $keys[$i] !== $i ){
        return 1;
      }
    }
    return false;
  }
public static function is_assoc ( array $ r ) { $ keys = array_keys ( $ r ) ; $ c = \ count ( $ keys ) ; for ( $ i = 0 ; $ i < $ c ; $ i ++ ) { if ( $ keys [ $ i ] !== $ i ) { return 1 ; } } return false ; }
Checks if the given array is associative.

```php
\bbn\\x::is_assoc(['id' => 0, 'name' => 'Allison']);

\bbn\\x::is_assoc(['Allison', 'John', 'Bert']);

\bbn\\x::is_assoc([0 => "Allison", 1 => "John", 2 => "Bert"]);

\bbn\\x::is_assoc([0 => "Allison", 1 => "John", 3 => "Bert"]);

// boolean true
// boolean false
// boolean false
// boolean true
```

@param array $r The array to check.
@return bool
Checks if the given array is associative .