PHP URL Parameter Processing

Some test URLs

  1. year=2018
  2. year parameter defined but without value - no error but the value is empty
  3. without year parameter- this will generate an error

The year parameter from the URL is set.

The year parameter from the URL: 2018