<?php
Klassendemo{
protected $name;
protected $age;
protected $lohn;
?ffentliche Funktion __construct($name,$age,$lohn){
$ this->name = $name;
$this->age = $age;
$this->wages = $wages;
}
?ffentliche Funktion show(){
return "員工的姓名是:{$this->name} 年齡:{$this->age} 工資:{$this->lohnes}";
}
}
$obj = new demo('peter',24,5000);
echo $obj->show();
? ? echo '<br />';
$arr = array(array('name '=>'jike','age'=>18,'lohnes'=>'500'),
array('name'=>'jike','age'=>18,' L?hne'=>'500'),);
foreach ($arr as $key => $value) {
if(is_array($value)){
foreach ($value as $key => ; $ v) {
Echo $ key .'- '.