#hello world calling
hello_world();
============================
//hello world calling
hello_world('hello');
==========================
/*
Hello World Calling
multiline comment
*/
hello_world('hello','world');
How can I match all 3 sections with different comment style along with function being called.
Along with that I want to capture comments as well as the arguments of the function . example
array(
array(
[0] => 'hello world calling';
[1] => 'hello world calling';
[2] => 'hello world calling multiline comment';
)
array(
[0] => '';
[1] => 'hello';
[2] => 'hello world';
)
)
Tried some regex but didnt got what I wanted