Sample code for 30+ languages & platforms
PHP

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat PHP Downloads

Chilkat2 PHP
<?php

use Chilkat2\Http;

$http = new Http();
$url = 'https://example.com/folder/page?lang=en&sort=asc#section2';
echo $http->GetUrlPath($url), "\n";

// Output:

// /folder/page