class MyDestructableClass {
function __construct($name) {
print "Конструктор\n";
$this->name = $name
}
}
$obj = new MyDestructableClass("test"); //будет создан объект со свойством name == "test"
$numbArr["450_500"] = array(1,6,7,15,46,20);
$numbArr["100_100"] = array(5,20);
$numbArr["430_420"] = array(7,20);
if(in_array($count_block,$numbArr["450_500"])){
$img_width = '400';
$img_height = '500';
$grid_num = '2';
}elseif(in_array($count_block,$numbArr["100_100"])){
$img_width = '100';
$img_height = '100';
$grid_num = '1';
}elseif(in_array($count_block,$numbArr["430_420"])){
$img_width = '430';
$img_height = '240';
$grid_num = '3';
}