[lang-ref] ( encode_uri_for_path ) ( php )

<?php
public function testEncodeUriForPath(): void
{
	// rawurlencode
	$s = rawurlencode('a b/c');
	$this->assertSame('a%20b%2Fc', $s);
}