I am currently doing a college project and i need to scna and recognize syntax of several php functions…
im starting with echo, the word echo is already scanned, and for its parameters im thinking to build a php pattern and use preg_match
diff forms of echo
"somethin";
"first"."second";
$var;
$var1.$var2;
"first"."second".$var;
$var."first"."second";
"first".$var."second";
need to build a pattern which is able to recognize above forms…
or if u have any better method [compared to patterns] then pls suggest, any code to link to tutorials will be greatly appreciated…
Thanks
Coolguy