Utilisateur:KelBot/urlencode.php

<syntaxhighlight lang="php"> <?php $txt = $argv[1];

if ($txt == "") {

 $txt = fread(STDIN, 2048);

}

echo urlencode($txt); exit; ?>