foreach stdclass object php 1

foreach stdclass object php

foreach ($this->_daoh->listar() as $intIndex => $objRecord) {
     print "$intIndex => {$objRecord->name}\";
}

Here is what the above code is Doing:
1. It creates a new instance of the DAO class.
2. It calls the listar() method of the DAO class.
3. It loops through the result set and prints the name of each record.

Similar Posts