답변 4개
채택된 답변
+20 포인트
6년 전
어차피 url이라면 쉽게가시죠!
function get_bo_table($url){
$parsed_url = parse_url($url);
parse_str($parsed_url['query'], $output);
return $output['bo_table']?$output['bo_table']:'';
}
$url = "http://127.0.0.1/~gnuboard/bbs/board.php?bo_table=event";
echo get_bo_table($url);
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
냠냠이
6년 전
감사합니다 ^^
댓글을 작성하려면 로그인이 필요합니다.
6년 전
$test = "http://127.0.0.1/~gnuboard/bbs/board.php?bo_table=event";
$pattern = "#bo_table=(.+)#i";
preg_match($pattern, $test, $match);
echo $match[1];
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인