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

WBOY
Release: 2016-06-13 10:57:19
Original
969 people have browsed it

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

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

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