php substr_compare

can anyone explain about following program

below program gives -1 output .how is it come?

echo substr_compare(‘Pankajdurve’,‘aankaa’,0,2);

This function returns:

0 - if the two strings are equal
<0 - if string1 (from startpos) is less than string2
>0 - if string1 (from startpos) is greater than string2

If length is equal or greater than length of string1, this function returns FALSE.

Sponsor our Newsletter | Privacy Policy | Terms of Service