Re: Error in zend2_example.phps
| From: | Andi Gutmans | Date: | Sat, 03 Aug 2002 08:58:21 +0000 |
| Subject: | Re: Error in zend2_example.phps | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86484@lists.php.net to get a copy of this message | ||
Thanks. I've fixed this.
Andi
At 05:51 PM 7/18/2002 +0200, Sander Steffann wrote:
I think zend2_example.phps has a little error in example 6: The display function is defined as:function display() { print $this->name; print "\n"; }But then it is called with:print $person->getName()->display();Either the function should use return, or the call shouldn't use print... -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php