Array ( [0] => 5555 [1] "/>  Array ( [0] => 5555 [1] ">

Home >Backend Development >PHP Tutorial >preg_match_all()小疑点不明白求解决

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:34:251155browse

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

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