phpbar.de logo

Mailinglisten-Archive

[php] Klassen unter PHP4

[php] Klassen unter PHP4

=?iso-8859-1?Q?Bj=F6rn_Schotte?= bjoern_(at)_baer.main.de
Sat, 27 May 2000 11:29:24 +0200


Hi,

* Andreas Teichrib wrote:
> class klasse2 {
>   var $klasse1 = new klasse1;
>   function test2() {
>     $this->klasse1->test1();
>   }

class klasse2 {

  /* Constructor */
  function klasse2() {
    $this->klasse1 = new klasse1;
  }

  function test2() {
    /* ... */
  }
}

So würde ich's machen.
-- 
<?php class new_media_development {
        var $url="http://www.rent-a-phpwizard.de/";
        var $fon="0931/7843792"; var $fax="0931/7843795";
} ?>


php::bar PHP Wiki   -   Listenarchive