function ObjList::find_match

7.x ObjList.php ObjList::find_match($obj_c)
6.x ObjList.php ObjList::find_match($obj_c)
4.x ObjList.php ObjList::find_match($obj_c)
5.x ObjList.php ObjList::find_match($obj_c)

File

classes/ObjList.php, line 112

Class

ObjList

Code

function find_match($obj_c) 
 { // This actually returns an object if it can find
  // it using index_of.

  $c = $this->index_of($obj_c);
  if ($c > -1) 
   {
    return $this->get_element($c);
  }
  else {
    return false;
  }
}