echo string with question mark in it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux