$index=
'444?487d?[[^44]][\][]';
$count = preg_match_all(
'/^[^[]+/',
$index,
$matches);
var_dump(
$count,
$matches);
$count = preg_match_all(
'/[\?\d]+/',
$index,
$matches);
var_dump(
$count,
$matches);
$count = preg_match_all(
'/[^?\\d]+/',
$index,
$matches);
var_dump(
$count,
$matches);
$index=
'[a][b][c]';
preg_match_all(
'/(?:^[^\[]+)|\[[^]]*\]/',
$index,
$matches);
var_dump(
$count,
$matches);
echo '<hr>';
var_dump(
$_GET);
var_dump(
2222,
$this->input->get(
'[stu][age][tom]'));
echo '<hr>';
var_dump(
222,test());
function test(){
echo __METHOD__;
echo __FUNCTION__;
}
转载请注明原文地址: https://www.6miu.com/read-2621130.html