function ObjList::index_of
Search API
| 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()
- ObjList::find_match in classes/ObjList.php 
File
- classes/ObjList.php, line 43 
Class
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;
}
