Home > Backend Development > PHP Tutorial > strcmp();函数是比较字符串的值,仍是比较字符串的长度

strcmp();函数是比较字符串的值,仍是比较字符串的长度

WBOY
Release: 2016-06-13 12:21:27
Original
2100 people have browsed it

strcmp();函数是比较字符串的值,还是比较字符串的长度?

来,告诉我吧,我承认自己就是懒得去试。
------解决思路----------------------
比较值,当然要是长度不一样就不必比较值了
------解决思路----------------------
比较值,如果长度不同,会不不足的部分以空字符作比较。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template