final protected function loadArray($file)
    {
        if (is_file($file)) {
            $array = include($file);

            if (is_array($array)) {
                return $array;
            } else {
                trigger_error(sprintf('Included file "%s" should return an array not %s', $file, gettype($array)));
            }

        } else {
            return array();
        }
    }
final protected function loadArray($file)
    {
        if (is_file($file)) {
            $array = include($file);

            if (is_array($array)) {
                return $array;
            } else {
                trigger_error(sprintf('Included file "%s" should return an array not %s', $file, gettype($array)));
            }

        } else {
            return array();
        }
    }
final protected function loadArray ( $ file ) { if ( is_file ( $ file ) ) { $ array = include ( $ file ) ; if ( is_array ( $ array ) ) { return $ array ; } else { trigger_error ( sprintf ( 'Included file "%s" should return an array not %s' , $ file , gettype ( $ array ) ) ) ; } } else { return array ( ) ; } }
Safely loads an array from a file

@param string $file
@return array
Safely loads an array from a file