ObjList::get_first

5.x ObjList.php ObjList::get_first()
4.x ObjList.php ObjList::get_first()

File

classes/ObjList.php, line 93

Class

ObjList

Code

function get_first() {
  if ($this->get_size() > 0) {
    return $this->get_element(0);
  }
  else {
    return false;
  }
}