Thanks all for your replies!
For my code, this is the best way to view variables in echo functions
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: http://www.php.net/unsub.php
AIL 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 it. /mj
"Niklas lampén" <[EMAIL PROTECTED]> skrev i meddelandet
025801c21c1d$55d16210$ba
Not true. :)
You can do it like this: (Ok, this is a for loop, but idea is the same)
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 it. /m
Yes you can
">
Link Here
Pradeep
Can you use
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 '';
>
> René
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
And this is not bad coding, it is actually fas
43
To: [EMAIL PROTECTED]
Subject: Re: [PHP] function echo ' '
Can you use
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
Can you use
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 '';
>
> René
>
> Martin Johansson wrote:
>
> >Is there a way to express php variables inside an echo '
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 "";
Martin Johansson wrote:
>Is there a way to express php variables inside an echo ' '.
>
>I want something like this to work:
>
>echo '';
>
>
Use the escape character to output double quotes
echo '';
René
Martin Johansson wrote:
>Is there a way to express php variables inside an echo ' '.
>
>I want something like this to work:
>
>echo '';
>
>I know I can write it like this:
>echo 'echo '">';
>
>But Its to hard to read the code like
my understanding is that you could write it like this:
-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 variables inside an echo ' '.
I want
10 matches
Mail list logo