Re: function echo ' '
| From: | Craig | Date: | Tue, 25 Jun 2002 07:42:45 +0000 |
| Subject: | Re: function echo ' ' | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103734@lists.php.net to get a copy of this message | ||
Can you use
<a href="<? echo $address; ?>"> or is this bad coding?
"René moonen" <rene.moonen@oberthur.nl> wrote in message
news:3D181D7A.4090607@oberthur.nl...
> Use the escape character to output double quotes
>
> echo '<a href=\"$address\">';
>
> René
>
> Martin Johansson wrote:
>
> >Is there a way to express php variables inside an echo ' '.
> >
> >I want something like this to work:
> >
> >echo '<a href="$address">';
> >
> >I know I can write it like this:
> >echo '<a href="';
> >echo "$address";
> >echo '">';
> >
> >But Its to hard to read the code like this.
> >/Martin
> >
> >
> >
> >
>
>