Yo mismo cree la clase pero nose como hacer para traer devuelta a los datos... por ejemplo antes de pasar el arreglo multidimensional a clase datos la consulta se hacia de esta forma:
echo $cantidad['nike']['modeloa']['35'];
ahora como seria para traer los datos devuelta?
Código:
<?php class Datos { function getDato(){ return $cantidad = array ( 'nike' => array ( 'Nikea'=> array ( '35' => 23, '36' => 36, '37' => 58, '38' => 27, '39' => 12, '40' => 40 ), 'Nikeb'=> array ( '35' => 30, '36' => 46, '37' => 38, '38' => 27, '39' => 12, '40' => 30 ), 'Nikec'=> array ( '35' => 23, '36' => 16, '37' => 38, '38' => 27, '39' => 12, '40' => 40 ), 'Niked'=> array ( '35' => 40, '36' => 26, '37' => 18, '38' => 47, '39' => 42, '40' => 42 ), ), 'puma' => array ( 'PumaA'=> array ( '35' => 12, '36' => 12, '37' => 33, '38' => 22, '39' => 23, '40' => 33 ), 'PumaB'=> array ( '35' => 12, '36' => 32, '37' => 44, '38' => 55, '39' => 12, '40' => 22 ), 'PumaC'=> array ( '35' => 23, '36' => 65, '37' => 66, '38' => 55, '39' => 23, '40' => 32 ), 'PumaD'=> array ( '35' => 31, '36' => 61, '37' => 18, '38' => 17, '39' => 22, '40' => 23 ), ), 'zara' => array ( 'ZaraA'=> array ( '35' => 31, '36' => 61, '37' => 23, '38' => 54, '39' => 65, '40' => 50 ), 'ZaraB'=> array ( '35' => 66, '36' => 34, '37' => 23, '38' => 56, '39' => 45, '40' => 34 ), 'ZaraC'=> array ( '35' => 34, '36' => 23, '37' => 13, '38' => 23, '39' => 2, '40' => 23 ), 'ZaraD'=> array ( '35' => 34, '36' => 66, '37' => 45, '38' => 24, '39' => 23, '40' => 33 ), ), ); } function getDatos() { $cantidad = $this->getDato(); return $cantidad[" "]; } } ?>