[lang-ref] ( encode_uri_for_query ) ( php )
<?php
public function testEncodeUriForQuery(): void
{
// urlencode
$s = urlencode('a b/c');
$this->assertSame('a+b%2Fc', $s);
}
<?php
public function testEncodeUriForQuery(): void
{
// urlencode
$s = urlencode('a b/c');
$this->assertSame('a+b%2Fc', $s);
}