Подскажите как через foreach() перебрать следующий массив:
нужна информация из вложенного массива. Заранее благодарю.
PHP:
скопировать код в буфер обмена
3 => 0 => object(Basis)[71] private '_new' (CActiveRecord) => boolean false private '_attributes' (CActiveRecord) => ... private '_related' (CActiveRecord) => ... private '_c' (CActiveRecord) => null private '_pk' (CActiveRecord) => string '1' (length=1) private '_alias' (CActiveRecord) => string 't' (length=1) private '_errors' (CModel) => ... private '_validators' (CModel) => null private '_scenario' (CModel) => string 'update' (length=6) private '_e' (CComponent) => null private '_m' (CComponent) => null 1 => object(Basis)[72] private '_new' (CActiveRecord) => boolean false private '_attributes' (CActiveRecord) => ... private '_related' (CActiveRecord) => ... private '_c' (CActiveRecord) => null private '_pk' (CActiveRecord) => string '2' (length=1) private '_alias' (CActiveRecord) => string 't' (length=1) private '_errors' (CModel) => ... private '_validators' (CModel) => null private '_scenario' (CModel) => string 'update' (length=6) private '_e' (CComponent) => null private '_m' (CComponent) => null 2 => object(Basis)[73] private '_new' (CActiveRecord) => boolean false private '_attributes' (CActiveRecord) => ... private '_related' (CActiveRecord) => ... private '_c' (CActiveRecord) => null private '_pk' (CActiveRecord) => string '3' (length=1) private '_alias' (CActiveRecord) => string 't' (length=1) private '_errors' (CModel) => ... private '_validators' (CModel) => null private '_scenario' (CModel) => string 'update' (length=6) private '_e' (CComponent) => null private '_m' (CComponent) => null 4 => 0 => object(Basis)[74] private '_new' (CActiveRecord) => boolean false private '_attributes' (CActiveRecord) => ... private '_related' (CActiveRecord) => ... private '_c' (CActiveRecord) => null private '_pk' (CActiveRecord) => string '4' (length=1) private '_alias' (CActiveRecord) => string 't' (length=1) private '_errors' (CModel) => ... private '_validators' (CModel) => null private '_scenario' (CModel) => string 'update' (length=6) private '_e' (CComponent) => null private '_m' (CComponent) => null
|