Array ( [0] => 5555 [1]&nbs"/>  Array ( [0] => 5555 [1]&nbs">
Home > Backend Development > PHP Tutorial > preg_match_all()小疑点不明白求解决

preg_match_all()小疑点不明白求解决

WBOY
Release: 2016-06-13 12:38:01
Original
844 people have browsed it

preg_match_all()小问题不明白求解决!
preg_match_all("/\d*/","5555", $images);
输出$images数组为:Array ( [0] => Array ( [0] => 5555 [1] => ) )
为什么二维数组中会有一个空的索引! 

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