I'm making a class (just basics) and I need help on returning an array of my object. Something like this
VB Code:
  1. <?php
  2. class comment{
  3.     function select_all(){
  4.         // I should return all comments from the database.
  5.     }
  6. }
  7. ?>
Something like this in java.
VB Code:
  1. import java.util.*;
  2. public class comment{
  3.     public List<comment> select_all(){
  4.         List<comment> list=new ArrayList<comment>();
  5.         return list;
  6.     }
  7. }
Hope I don't make non sense post.