Json.php 388 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Spider\Lib\Doc;
  3. use Dever;
  4. use Spider\Lib\Doc as Doc;
  5. class Dom extends Core
  6. {
  7. public static function init($html)
  8. {
  9. return json_decode($html, true);
  10. }
  11. public static function find($data, $rule)
  12. {
  13. print_r($data);die;
  14. }
  15. public static function rule($doc, $dom, $col, $rule)
  16. {
  17. print_r($data);die;
  18. }
  19. }