strcmp

strcmp

(PHP 4, PHP 5, PHP 7)

strcmpBinary safe string comparison

Description

int strcmp ( string $str1 , string $str2 )

Note that this comparison is case sensitive.

Parameters

str1

The first string.

str2

The second string.

Return Values

Returns