![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/05/2016, 11:11
|
![Avatar de pateketrueke](http://static.forosdelweb.com/customavatars/avatar229417_6.gif) | Modernizr | | Fecha de Ingreso: abril-2008 Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 10 meses Puntos: 2534 | |
Respuesta: Aplicando DAO a php En PHP tienes arrays:
Código PHP:
Ver original$lista = []; while (/* ... */) { $noticia = new Noticia(); // ... $lista []= $noticia; } return $lista;
Consulta el manual: http://www.php.net/manual/es/language.types.array.php
__________________ Y U NO RTFM? щ(ºдºщ) No atiendo por MP nada que no sea personal. |