Imdb\Person::born PHP Method

born() public method

Get Birthday
See also: IMDB person page /bio
public born ( ) : array | null
return array | null birthday [day,month,mon,year,place] where month is the month name, and mon the month number
    public function born()
    {
        if (empty($this->birthday)) {
            $this->getPage("Bio");
            if (preg_match('|Date of Birth</td>\\s*(.*)</td|iUms', $this->page["Bio"], $match)) {
                preg_match('|/search/name\\?birth_monthday=(\\d+)-(\\d+).*?\\n?>\\d+&nbsp;(.*?)<|', $match[1], $daymon);
                preg_match('|/search/name\\?birth_year=(\\d{4})|ims', $match[1], $dyear);
                preg_match('|/search/name\\?birth_place=.*?"\\s*>(.*?)<|ims', $match[1], $dloc);
                $this->birthday = array("day" => @$daymon[2], "month" => @$daymon[3], "mon" => @$daymon[1], "year" => @$dyear[1], "place" => @$dloc[1]);
            }
        }
        return $this->birthday;
    }