<?php
类演示{
protected $name;
protected $age;
protected $wages;
公共函数 __construct($name,$age,$wages){
$this->name = $name;
$this- >age = $age;
$this->wages = $wages;
## $obj = new demo('peter',24,5000);
echo $obj-> show();
echo '
';
$arr = array(array('name'=>'jike ','年龄'=>18,'工资'=>'500'),
array('姓名'=>'吉克','年龄'=>18,'工资' =>'500'),);
foreach ($arr as $key => $value) {
if(is_array($value)){
foreach ($value as $key => $v) {
echo $key.'-'.$v.'
';
}
}
}
?>