Привет!

Michael Zornek wrote:
> We all know this works:
> 
> echo "<p>$someVar";
> 
> However this does not:
> 
> echo "<p>$db->field('name_long')";
> 
> I know this slight variation will make it work:
> 
> echo "<p>" . $db->field('name_long');
> 
> But it's cumbersome .. Anyway to get the first way to work?
> 
> ~ Mike

In your example you try and execute a "method" within a quoted string. 
That would not work even with a traditional function call, AFAIK.

Пока
Альберто
Киев


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to