11/02
2018
php parser for html heading -starting from H2- as content table
php parser for html heading starting from H2 to H6 as content table, (*1)
$ composer require ibraheem-ghazi/heading-parser
parse($code), (*2)
paramters: $code // the html code for topic or post return array of HtmlHeading
Example:, (*3)
<?php require 'vendor/autoload.php'; use IbraheemGhazi\HeadingParser\HtmlHeadingParser; $code = ""; $code .= "Heading 2
"; $code .= "Heading 3
"; $code .= "Heading 4
"; $code .= "Heading 4
"; $code .= "Heading 5
"; $code .= "Heading 4
"; $code .= "Heading 3
"; $code .= "Heading 2
"; $code .= "Heading 3
"; $code .= "Heading 3
"; $code .= "Heading 4
"; $code .= "Heading 5
"; $code .= "Heading 5
"; $code .= "Heading 6
"; $code .= "Heading 2
"; var_dump(HtmlHeadingParser::parse($code));