HtmlDomParser.php 553 B

1234567891011121314151617181920
  1. <?php
  2. // say me who add "О╩©" into start of file?
  3. // Becouse of this 3 symbol before <?php - php get error
  4. // i think it Sublime Text
  5. namespace Sunra\PhpSimple;
  6. require 'simplehtmldom_1_5'.DIRECTORY_SEPARATOR.'simple_html_dom.php';
  7. class HtmlDomParser {
  8. static public function file_get_html() {
  9. return call_user_func_array ( '\file_get_html' , func_get_args() );
  10. }
  11. // get html dom from string
  12. static public function str_get_html() {
  13. return call_user_func_array ( '\str_get_html' , func_get_args() );
  14. }
  15. }