Re: a stupid question
| From: | Randy C Boland | Date: | Fri, 25 Jun 2004 18:50:11 +0000 |
| Subject: | Re: a stupid question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189074@lists.php.net to get a copy of this message | ||
That would work if aFunction was a variable - more less. It would
display the inner single quotes, so you'd really want:
echo "some text $aFunction some more text";
However, aFunction is, ironically, a function, so it needs to be a
function call.
echo "some text" . aFunction() . "some more text";
On Fri, 25 Jun 2004 10:09:42 -0500, Alicia Riggs
<alicia.riggs@fedexkinkos.com> wrote:
>
> Your problem is the paren's
>
> echo "'some text' $aFunction 'some more text'";
>
> You need double quotes for the entire string, but single quotes around
> the text so it knows it is text.