Properties of objects assigned from PHP can be referenced by specifying the
property name after the '->' symbol.
PHP配给的对象的属性可以使用'->'符号引用.
Example 4-4. accessing object properties
例 4-4.访问对象的属性
name: {$person->name}<br>
email: {$person->email}<br>
OUTPUT:
name: Zaphod Beeblebrox<br>
email: zaphod@slartibartfast.com<br> |
|