我有一个以下URL并存储在一个$currentURL
变量中。
$currentURL = http://localhost/example/villa-search/page/2/?features=Beachfront%2CCook%20Services%2CGarden%2CPrivate%20Pool%2CSea%20View
现在我想将URL分解为section并存储在两个不同的变量中
第一部分是:
http://localhost/example/villa-search
第二部分是:
/page/2/?features=Beachfront%2CCook%20Services%2CGarden%2CPrivate%20Pool%2CSea%20View
如何实现这一目标?