Home >Backend Development >PHP Tutorial >"ENTP" "ISTP"这2个字符串如何单个字符进行比较

"ENTP" "ISTP"这2个字符串如何单个字符进行比较

WBOY
WBOYOriginal
2016-06-13 10:57:19980browse

"ENTP" "ISTP"这2个字符串怎么单个字符进行比较?
"ENTP" "ISTP"这2个字符串,我要统计两者中相同字符的个数,请问怎么做?在线等!
谢谢!

------解决方案--------------------

PHP code
$str1="ENTP";$str2="ISTP";$count=0;for($i=0;$i<strlen if class="clear">
                 
              
              
        
            </strlen>
Statement:
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