core/functions.php
/* Check if two strings are the same, if flag is true the comparison is case unsensitive */
Check if two strings are the same, if flag is true the comparison is case unsensitive
Check if two strings are the same if flag is true the comparison is case unsensitive
function same_strings($str1, $str2, $flag = false)
	{
		if($flag)
		{
			$str1 = strtolower($str1);
			$str2 = strtolower($str2);
		}
		if (strcmp($str1, $str2) == 0) return true;
		else return false;
	}
function same_strings ( $ str1 , $ str2 , $ flag = false ) { if ( $ flag ) { $ str1 = strtolower ( $ str1 ) ; $ str2 = strtolower ( $ str2 ) ; } if ( strcmp ( $ str1 , $ str2 ) == 0 ) return true ; else return false ; }
Check if two strings are the same, if flag is true the comparison is case unsensitive
Check if two strings are the same if flag is true the comparison is case unsensitive
// If flag, decapitalize strings