src/Schedule/School.php
public function parseHtml($html)
    {
        return Parser::table($html, '#DBGrid', [
            'status', 'name', 'credit', 'examination', 'property', 'teacher', 'code', 'week',
            ['hour', function (Crawler $crawler) {
                return $crawler->attr("title") ?: $crawler->text();
            }],
            ['place', function (Crawler $crawler) {
                return $crawler->text() == ";" ? '' : ($crawler->attr("title") ?: $crawler->text());
            }],
            'campus',
            ['class', function (Crawler $crawler) {
                return $crawler->attr("title") ?: $crawler->text();
            }],
        ], 12, 1, 'text');
    }
public function parseHtml($html)
    {
        return Parser::table($html, '#DBGrid', [
            'status', 'name', 'credit', 'examination', 'property', 'teacher', 'code', 'week',
            ['hour', function (Crawler $crawler) {
                return $crawler->attr("title") ?: $crawler->text();
            }],
            ['place', function (Crawler $crawler) {
                return $crawler->text() == ";" ? '' : ($crawler->attr("title") ?: $crawler->text());
            }],
            'campus',
            ['class', function (Crawler $crawler) {
                return $crawler->attr("title") ?: $crawler->text();
            }],
        ], 12, 1, 'text');
    }
public function parseHtml ( $ html ) { return Parser :: table ( $ html , '#DBGrid' , [ 'status' , 'name' , 'credit' , 'examination' , 'property' , 'teacher' , 'code' , 'week' , [ 'hour' , function ( Crawler $ crawler ) { return $ crawler -> attr ( "title" ) ? : $ crawler -> text ( ) ; } ] , [ 'place' , function ( Crawler $ crawler ) { return $ crawler -> text ( ) == ";" ? '' : ( $ crawler -> attr ( "title" ) ? : $ crawler -> text ( ) ) ; } ] , 'campus' , [ 'class' , function ( Crawler $ crawler ) { return $ crawler -> attr ( "title" ) ? : $ crawler -> text ( ) ; } ] , ] , 12 , 1 , 'text' ) ; }
Parse html to array

@param string $html

@return array
Parse html to array