PHP: Adding Parameters To A URL in PHP

  • Post category:PHP
  • Post comments:0 Comments

PHP: Adding Parameters To A URL in PHP
Adding Parameters To A URL in PHP

This article shows how to add query parameters to a URL in a php script. It is aimed at the beginner to intermediate level PHP programmer but developers from other languages may find some useful information here. At first this seems like a simple enough task. Starting with the url as a string, just add the new parameters to the end. Yeah, that would be nice. It turns out that there are a few conditions that make the process just a bit more difficult. It’s still not a hard problem but there are enough special cases to make it interesting.
(more…)

Continue ReadingPHP: Adding Parameters To A URL in PHP