equal() 공개 정적인 메소드

Example: $result = Strings::equal('0123', 123); Result: false
public static equal ( mixed $object1, mixed $object2 ) : boolean
$object1 mixed
$object2 mixed
리턴 boolean
예제 #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);
 }
예제 #2
0
 /**
  * @test
  */
 public function shouldReturnFalseForObjectWithDifferentStringRepresentation()
 {
     $this->assertFalse(Strings::equal('0123', 123));
     $this->assertFalse(Strings::equal(123, '0123'));
 }
예제 #3
0
파일: Uri.php 프로젝트: letsdrink/ouzo
 private static function _putRequestParameters($content)
 {
     if (Strings::equal(Arrays::getValue($_SERVER, 'REQUEST_METHOD'), 'PUT') && Strings::equalsIgnoreCase(ContentType::value(), 'application/x-www-form-urlencoded')) {
         parse_str($content, $parameters);
         return Arrays::toArray($parameters);
     }
     return false;
 }