티스토리 뷰
다음을 사용할 수 있습니다 explode()
.
<?php
$string = 'http://example.de/?param=1¶m2=http://example2.com/';
echo explode('¶m2=',$string)[1];
출력 :-https: //eval.in/657097
주석에 대한 쿼리에 대해 다음과 같이하십시오.
https://eval.in/657101
출처
https://stackoverflow.com/questions/39917058