RE: [PHP] function echo ' '
| From: | Niklas Lampén | Date: | Tue, 25 Jun 2002 07:53:03 +0000 |
| Subject: | RE: [PHP] function echo ' ' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103735@lists.php.net to get a copy of this message | ||
Shorter version would be
<a href="<?=$address?>">
And this is not bad coding, it is actually faster than echoing
everything. We had this conversation maybe a week ago, so let's not
start it again. :)
Niklas
-----Original Message-----
From: Craig [mailto:craig@sitedesign.net]
Sent: 25. kesäkuuta 2002 10:43
To: php-general@lists.php.net
Subject: Re: [PHP] function echo ' '
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
> >
> >
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/
###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/