The "?" is not related to PHP only. This is the symbol which starts the begining of query. Format is:
www.serverhost.com/script.php?parameter1=A¶meter2=B
When browser requests server with this query the server parses it and passes parameters to the script, for example in PHP you will receive those parameters in $_GET array, i.e:
$_GET['parameter1'] will contain 'A', and $_GET['parameter2'] will contain 'B'.