On 16.02.2006 14:32, Morten Fangel wrote:
Hi,

Look at the following example:
---
<?php
class Foo {
  public $bar;
  function __construct() {
    $this->bar->baz = 'blah';
  }
}
$foo = new Foo();
print_r($foo);
?>
--

It results in:
---
Foo Object
(
    [bar] => stdClass Object
        (
            [baz] => blah
        )
)
---

<?php
$a->bar = 1; var_dump($a);
?>
This code is much simpler, huh?

--
Wbr, Antony Dovgal

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to