<?php
類別示範{
protected $name;
protected $age;
protected $wages;
公用函數__construct($name,$age,$wages){
$this->name = $name;
$this- >age = $age;
$this->wages = $wages;
}
public function show() {
return "員工的姓名是:{$this->name} 年齡:{$this->age} 薪水:{$this->wages}";
}
}
echo $key.'-'.$v.'
## }
#?>