note 27745 deleted from language.oop by aidan
| From: | aidan@php.net | Date: | Sat, 03 Jul 2004 14:55:41 +0000 |
| Subject: | note 27745 deleted from language.oop by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72457@lists.php.net to get a copy of this message | ||
Note Submitter: Michael Berndt
----
<?
// some array examples
// it works!
$Berndt = array('Dozent'=> 'PHP','Linux' => 'AWK,
Sed');
class Berndt {
var $Berndt = array('Michael', 'Berndt', 'phpinfo',
' http://www.michael-berndt.de/ie/phpinfo/colour.php
');
var $Michael = array('Michael'=> 'Berndt',
'Berlin' =>' http://www.michael-berndt.de/ie/phpinfo/phpinfo.php
');
function Michael(){
global $Berndt;
echo "<pre>";
print_r($Berndt);
echo "\n" .$Berndt['Dozent']. "\n";
print_r($this->Berndt); // integer-indices
echo "\n" . $this->Berndt[0] ."\n";
echo "\n". $this->Michael["Berlin"] ."\n\n";
print_r($this->Michael); // key/value pairs
echo "</pre>";
}
} // End class Berndt
$objekt = new Berndt();
$objekt->Michael();
?>
<?/* PHP Version >= 4.1.2: */?>