...

понедельник, 9 июля 2018 г.

PHP-Дайджест № 134 (24 июня – 8 июля 2018)

class Example
{
    /**
     * Returns: < 0 if $this is less than $other,
     *          > 0 if $this is greater than $other,
     *         == 0 if $this is equal to $other.
     */
    public function __compareTo($other): int
    {
        ...
    }
 
    /**
     * @returns bool TRUE if $this is equal to $other, FALSE otherwise.
     */
    public function __equals($other): bool
    {
        ...
    }
}

Let's block ads! (Why?)

Комментариев нет:

Отправить комментарий