I want to add GET parameters to URLs that may and may not contain GET parameters without repeating ? or &.
?
&
Example:
If I want t
$parameters = array(); foreach ($get as $key => $value) { $parameters[] = $key.'='.$value; } $url = 'http://example.com/movies?'.implode('&', $parameters);