Array in element of object [closed]
Why in example 'mytest' isn't an 开发者_运维技巧array?
class myclass {
public $mytest = array();
}
$insert = new myclass;
$insert -> mytest = Array (15, 50);
It is an array:
class myclass {
public $mytest = array();
}
$insert = new myclass;
$insert -> mytest = Array (15, 50);
echo gettype($insert->mytest); // prints array
精彩评论