본문 바로가기

PHP/기타

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


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

'PHP > 기타' 카테고리의 다른 글