codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php class firstClass { public $thedate; function __construct() { $this->thedate = date('d'); } } class secondClass { public $datefrom1stclass; function __construct() { $this->datefrom1stclass = new firstClass; echo $this->datefrom1stclass->thedate; } } new secondClass;
Private
[
?
]
Run code
Submit