<?php $a=12; $reg='/1*/'; preg_match_all( $reg, $a, $match); var_dump($match); exit;
//输出结果
array(1) {
[0]=>
array(3) {
[0]=>
string(1) "1"
[1]=>
string(0) ""
[2]=>
string(0) ""
}
}
为什么会输出3个下标? 第三个下标哪来的?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号