Imdb\Title::get_table_rows_cast PHP Метод

get_table_rows_cast() защищенный Метод

Get rows for the cast table on the page
См. также: used by the method cast
protected get_table_rows_cast ( $html, $table_start, $class = "nm" ) : array
Результат array array[0..n] of strings
    protected function get_table_rows_cast($html, $table_start, $class = "nm")
    {
        $row_s = strpos($html, '<table class="cast_list">');
        if ($row_s == 0) {
            return array();
        }
        $endtable = strpos($html, "</table>", $row_s);
        $block = substr($html, $row_s, $endtable - $row_s);
        if (preg_match_all('!<tr.*?>(.*?)</tr>!ims', $block, $matches)) {
            return $matches[1];
        }
        return array();
    }