i have a class lets call it page and it retrieve somw rows from database (array) and returns them.
i want somthing like this:
when a class called in a div (<div> $posts->show()</div>
) like wordpress and other CMSs i want the div to be looped.i mean like
<div>1</div><div>2</div><div>3</div><div>4</div>
within the class.