PHP/기타

[PHP] REQUEST_URI 에서 controller/action 나누는 정규식

지눕 2020. 8. 21. 10:43


preg_match("/^([^\/]+)\/?([^\/]+)?(.*)?$/", $extra, $match);