Compare Strings (Case Insensitive)

Compare two strings ignoring case differences.

Code

General
strcasecmp($str1, $str2) === 0 ? 'true' : 'false';

Parameters

First string to compare

Second string to compare

Server

More PHP Snippets