/ Published in: PHP
This code comes from the php documentation (see url)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function encode_array($args) { $c = 0; $out = ''; foreach($args as $name => $value) { if($c++ != 0) $out .= '&'; { }else{ } } return $out . "\n"; } ?> If there are arrays within the $args array, they will be serialized before being urlencoded. Some examples: <?php ?>
URL: http://www.php.net/manual/en/function.urlencode.php#97191