echo string with question mark in it

From: Date: Tue, 30 Nov 2004 23:54:44 +0000
Subject: echo string with question mark in it
Groups: php.general 
Request: Send a blank email to php-general+get-203191@lists.php.net to get a copy of this message
I have the following string variable $string = 'test.php?id=' . $id; but when I echo out the string it looks like this test.php? id=######### ####### is the $id variable value btw. How do I make the ? part of the string instead of php evaluating that question mark? I've tried adding \ before the ? but it doesn't work. Thanks, Brent

« previous php.general (#203191) next »