public static function arrayColumns(array $data)
    {
        // Count the amount of values from the source input
        $count = count($data);

        if ($count === 0) {
            return false;
        }

        if ($count === 1) {
            return array_keys($data[0]);
        }

        if (isset($data[0])) {
            return array_keys($data[0]);
        } else {
            return false;
        }
    }
public static function arrayColumns(array $data)
    {
        // Count the amount of values from the source input
        $count = count($data);

        if ($count === 0) {
            return false;
        }

        if ($count === 1) {
            return array_keys($data[0]);
        }

        if (isset($data[0])) {
            return array_keys($data[0]);
        } else {
            return false;
        }
    }
public static function arrayColumns ( array $ data ) { // Count the amount of values from the source input $ count = count ( $ data ) ; if ( $ count === 0 ) { return false ; } if ( $ count === 1 ) { return array_keys ( $ data [ 0 ] ) ; } if ( isset ( $ data [ 0 ] ) ) { return array_keys ( $ data [ 0 ] ) ; } else { return false ; } }
Returns all column names from two dimensional array validating by count

@param array $data
@return array|boolean
Returns all column names from two dimensional array validating by count