string(1) "/" ["widget"] => string(14) "Widget_Archive" ["action"] => string(6) "render" ["regx"]">
时间:2021-07-01 10:21:17 帮助过:21人阅读
array(6) {
["url"] => string(1) "/"
["widget"] => string(14) "Widget_Archive"
["action"] => string(6) "render"
["regx"] => string(8) "|^[/]?$|"
["format"] => string(1) "/"
["params"] => array(0) {
}
}
regx中的值是用|斜杠做定界符,不是用/或#吗?preg_match()函数
array(6) {
["url"] => string(1) "/"
["widget"] => string(14) "Widget_Archive"
["action"] => string(6) "render"
["regx"] => string(8) "|^[/]?$|"
["format"] => string(1) "/"
["params"] => array(0) {
}
}
regx中的值是用|斜杠做定界符,不是用/或#吗?preg_match()函数
题目取的不好,自己看手册吧 http://php.com/manual/zh/regexp.reference.delimiters.php