PageRenderTime 27ms CodeModel.GetById 25ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/assert_templates/loop_object.php

http://github.com/crodas/Haanga
PHP | 9 lines | 6 code | 3 blank | 0 comment | 0 complexity | c8ff830e029dacfe9e507e5b2cadf6c5 MD5 | raw file
1<?php
2
3$obj = new stdclass;
4$obj->foo = 'bar';
5$obj->nombre = 'crodas';
6
7$objects = array($obj);
8
9$data = compact('obj', 'objects');