超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<strchrstrcoll>
Last updated: Fri, 22 Jun 2007

strcmp

(PHP 3, PHP 4 , PHP 5)

strcmp -- Binary safe string comparison

Description

int strcmp ( string str1, string str2)

Returns < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.

Note that this comparison is case sensitive.

See also ereg(), strcasecmp(), substr(), stristr(), strncasecmp(), strncmp(), and strstr().




add a note add a note User Contributed Notes
strcmp
frewuill at merlin-corp dot com
29-Feb-2000 06:49
Hey be sure the string you are comparing has not special characters like '\n' or something like that.

<strchrstrcoll>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22