PHPCodeAnalyzer
[ class tree: PHPCodeAnalyzer ] [ index: PHPCodeAnalyzer ] [ all elements ]

Source for file test.php

Documentation is available at test.php

  1. <?php
  2. error_Reporting(E_ALL);
  3.  
  4. include 'PHPCodeAnalyzer.php';
  5. $analyzer = new PHPCodeAnalyzer();
  6. $analyzer->source = file_get_contents(__FILE__);
  7. $analyzer->analyze();
  8. echo "<pre>";
  9. unset($analyzer->source);
  10. print_r($analyzer);
  11. eval ('echo "bad guy";');
  12. eval("echo 'bad guy!';");
  13.  
  14. echo "\n\nRandom Testing Junk\n";
  15. function test()
  16. {
  17. echo "Boo\n";
  18. }
  19.  
  20. ?>
  21. Hi mom
  22. <?php
  23.  
  24. class test
  25. {
  26. function hello($h)
  27. {
  28. echo $h;
  29. }
  30. }
  31. $a = new test();
  32. $a = new test;
  33. $a->hello("Hello World\n");
  34. $a->blah = "blah";
  35. test::hello("Hello Again\n");
  36. test();
  37.  
  38. eval(" function test2() {} ");
  39. echo "test\n";
  40. $B = "test";
  41. print "hi $B\n";
  42.  
  43. define('blah',true);
  44. ?>

Documentation generated on Sun, 12 Dec 2004 17:15:31 -0600 by phpDocumentor 1.3.0RC3