/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /** * Fetches back a string representation of the current $_GET array. * * @version 1.0 * @author Andrew Hart * * @param array $exclusions[optional] Which items of the $_GET array to skip. * @return string The $_GET array in string format, eg: "action=add&value=test&this=true" */ { $str = ""; foreach ($_GET as $key => $val) { { $str .= $key . "=" . $val . "&"; } } return $str; } ?>
Comments
