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
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to