Home > Backend Development > PHP Tutorial > 求正则 出int(11) 中的int 和11解决思路

求正则 出int(11) 中的int 和11解决思路

WBOY
Release: 2016-06-13 13:40:10
Original
944 people have browsed it

求正则 出int(11) 中的int 和11
请匹配 int(11) 和int

也就是说当没有后面的括号只匹配int

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

PHP code

$str    =<font color="#e78608">------解决方案--------------------</font><br>
Copy after login
PHP code

$str =";
echo $m[2];
<br><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
PHP code
$str =<font color="#e78608">------解决方案--------------------</font><br>按楼主的应用,检测int就可以了。<br>以(为分界,拿出2个部分,应该就是楼主想要的了。 <div class="clear">
                 
              
              
        
            </div>
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