Array in element of object - by auto2000 Why in example 'mytest' isn't an array? class myclass { public $mytest = array(); } $insert = new myclass; $insert -> mytest = Array (15, 50); Read the article