my understanding is that you could write it like this:
? echo 'a href='.$address.''; ?
-Original Message-
From: Martin Johansson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 25 June 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] function echo ' '
Is there a way to express php
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;
Yes, just use instead of '.
Using ' causes the contents to be treated as literal strings, and the $
is therefore not treated as a $.
Just do:
echo a href=\$address\;
Martin Johansson wrote:
Is there a way to express php variables inside an echo ' '.
I want something like this to work:
Can you use
a href=? echo $address; ? or is this bad coding?
René moonen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Use the escape character to output double quotes
echo 'a href=\$address\';
René
Martin Johansson wrote:
Is there a way to express
2002 10:43
To: [EMAIL PROTECTED]
Subject: Re: [PHP] function echo ' '
Can you use
a href=? echo $address; ? or is this bad coding?
René moonen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Use the escape character to output double quotes
echo 'a href=\
But the problem is that Im doin it inside a while loop. So I need to
echo it.
/mj
Niklas lampén [EMAIL PROTECTED] skrev i meddelandet
025801c21c1d$55d16210$ba93c5c3@Niklas">news:025801c21c1d$55d16210$ba93c5c3@Niklas...
Shorter version would be
a href=?=$address?
And this is not bad coding, it
Yes you can
a href = link.php??php echo module=1; ?
Link Here /a
Pradeep
Can you use
a href=? echo $address; ? or is this bad coding?
René moonen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Use the escape character to output double quotes
echo 'a
PROTECTED]
Subject: Re: [PHP] function echo ' '
But the problem is that Im doin it inside a while loop. So I need to
echo it. /mj
Niklas lampén [EMAIL PROTECTED] skrev i meddelandet
025801c21c1d$55d16210$ba93c5c3@Niklas">news:025801c21c1d$55d16210$ba93c5c3@Niklas...
Shorter version would be
?
a href=page?=$i?.htmPage ?=$i?/a
?
};
?
Niklas
-Original Message-
From: Martin Johansson [mailto:[EMAIL PROTECTED]]
Sent: 25. kesäkuuta 2002 10:56
To: [EMAIL PROTECTED]
Subject: Re: [PHP] function echo ' '
But the problem is that Im doin it inside a while loop. So I need to
echo
Thanks all for your replies!
For my code, this is the best way to view variables in echo functions
? echo 'a href='.$address.''; ?
It is nice and easy to read while going through a lot of code.
/mj
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
10 matches
Mail list logo