Return the $_GET array as a string?
Posted: Sat Jan 10, 2004 11:09 pm
Is there any way to convert the $_GET array back into its original query string?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$string = '';
foreach($_POST as $key => $value) {
if(empty($string)) {
$string .= $key . "=" . $value;
} else {
$string .= "&" . $key . "=" . $value
}
}
?>