Ouzo\Utilities\Strings::equal PHP 메소드

equal() 공개 정적인 메소드

Example: $result = Strings::equal('0123', 123); Result: false
public static equal ( mixed $object1, mixed $object2 ) : boolean
$object1 mixed
$object2 mixed
리턴 boolean
    public static function equal($object1, $object2)
    {
        return (string) $object1 === (string) $object2;
    }

Usage Example

예제 #1
0
 public function asString()
 {
     $key = $this->timeAgo->getKey();
     $params = $this->timeAgo->getParams();
     if (Strings::equal($key, 'timeAgo.thisYear')) {
         $params['month'] = I18n::t($params['month']);
     }
     return I18n::t($key, $params);
 }
All Usage Examples Of Ouzo\Utilities\Strings::equal