Re: [PHP] [PHP5RC3] echo " $this->db->host " not work
Try enclosing the variable in Curly Braces echo " {$this->db->host} "; Otherwise, the string parser sees $this->db as the variable you're referring to. Chris Tomasen wrote: assume $this->db is an object. $db->host is a string "localhost". ehco $this->db->host; // will output localhost but ehco " $this->db->host "; // whill output Object id #2->host is that a bug. or just have to workout by myself? Thanks for all your good work Tomasen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [PHP5RC3] echo " $this->db->host " not work
> echo $this->db->host; > // will output > localhost > > but > echo " $this->db->host "; > // whill output > Object id #2->host > > is that a bug. or just have to workout by myself? http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [PHP5RC3] echo " $this->db->host " not work
assume $this->db is an object. $db->host is a string "localhost". ehco $this->db->host; // will output localhost but ehco " $this->db->host "; // whill output Object id #2->host is that a bug. or just have to workout by myself? Thanks for all your good work Tomasen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php