PHP urlencode() and urldecode()
</p>
<p><?php</p>
<p> $testString = "This is a test ‘ with ‘ several apostrophes’";<br />
echo $testString . "<br />"; // This is a test ‘ with ‘ several apostrophes’<br />
$testString = urlencode( $testString );<br />
echo $testString . "<br />"; // This+is+a+test+%27+with+%27+several+apostrophes%27<br />
$testString = urldecode( $testString );<br />
echo $testString . "<br />"; // This is a test ‘ with ‘ several apostrophes’<br />
?></p>
<p>
Tags: Flash, PHP
This entry was posted
on Friday, April 16th, 2010 at 13:00 and is filed under Flash.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.