| 1 | <?php  | 
            ||
| 18 | class Arrays  | 
            ||
| 19 | { | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Create an empty array containing a specific number of elements  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param int $numElements  | 
            ||
| 25 | * The number of elements in Array  | 
            ||
| 26 | * @return array  | 
            ||
| 27 | */  | 
            ||
| 28 | 1 | public static function createEmptyArray($numElements): ArrayObject  | 
            |
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Check whether a key exists in array and corresponding value is not empty  | 
            ||
| 35 | *  | 
            ||
| 36 | * @param array $array  | 
            ||
| 37 | * @param mixed $element  | 
            ||
| 38 | * @return bool  | 
            ||
| 39 | */  | 
            ||
| 40 | 38 | public static function hasElement($array, $element): bool  | 
            |
| 48 | }  | 
            ||
| 49 |