function ObjList::index_of

7.x ObjList.php ObjList::index_of($obj_c)
6.x ObjList.php ObjList::index_of($obj_c)
4.x ObjList.php ObjList::index_of($obj_c)
5.x ObjList.php ObjList::index_of($obj_c)
1 call to ObjList::index_of()

File

classes/ObjList.php, line 43

Class

ObjList

Code

function index_of($obj_c) 
 {
  // Find in the array an object.equals(objC), and return the
  // index.

  for ($t = 0; $t < count($this->array_list); $t++) 
   {
    if ($this->array_list [$t]->equals($obj_c)) 
     {
      return $t;
    }
  }

  return -1;

}