Re: Echo # problem

From: Date: Wed, 12 Feb 2003 11:48:42 +0000
Subject: Re: Echo # problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135295@lists.php.net to get a copy of this message
Two ways: a) echo "blabla # $blabla"; or b) echo 'blabla # '.$blabla; The # character must just be inside the echo's quotes. On Wed, 2003-02-12 at 13:36, Paul McQ wrote: > I am writing an application in which I need to redirect to an url using the > Header function. This redirection must include the # character so that the > user is taken to the relevant part of the following page. > > PHP sees the # as a comment no matter what I do and therefore the > redirection doesn't work as I would like. Does anyone know how you can use > PHP to echo the # character? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#135295) next »