Ouzo\Utilities\Strings::equalsIgnoreCase PHP Method

equalsIgnoreCase() public static method

Example: $equal = Strings::equalsIgnoreCase('ABC123', 'abc123'); Result: true
public static equalsIgnoreCase ( string $string1, string $string2 ) : boolean
$string1 string
$string2 string
return boolean
    public static function equalsIgnoreCase($string1, $string2)
    {
        return mb_strtolower($string1) == mb_strtolower($string2);
    }

Usage Example

Beispiel #1
0
 public function join()
 {
     $any = Arrays::any($this->_query->joinClauses, function (JoinClause $joinClause) {
         return Strings::equalsIgnoreCase($joinClause->type, 'RIGHT');
     });
     if ($any) {
         throw new BadMethodCallException('RIGHT JOIN is not supported in sqlite3');
     }
     return parent::join();
 }
All Usage Examples Of Ouzo\Utilities\Strings::equalsIgnoreCase