Created
December 17, 2016 19:26
-
-
Save ichiriac/aff712bf42774d4d16358eb40fefbfd1 to your computer and use it in GitHub Desktop.
A sample PHP file for showing AST with php-parser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Some namespace & file description | |
*/ | |
namespace foo { | |
function bar($a, $b) { | |
return $a + $b; | |
} | |
// will print : 5 | |
echo bar(2, 3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment