I can't echo object variables
| From: | Michael Zornek | Date: | Tue, 16 Jul 2002 17:45:01 +0000 |
| Subject: | I can't echo object variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107937@lists.php.net to get a copy of this message | ||
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
--
Mike Zornek | Project Leader
Apple Student Developers
The Insanely Great Site with the Insanely Long URL
http://www.applestudentdevelopers.org
Personal Site:
http://www.mikezornek.com