How do i extract a function call with arguments from a source file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

Is there a way to extract a function call with its arguments?

Like i have something like this:
=CODE==================================
<?php

//Some Comments

print_r(ClassName::FunctionName('foo', 'bar', Array(), false));
$fooBar = ClassName::FunctionName('foo', 'bar');

?>
=CODE==================================

Now i want to extract the ClassName::FunctionName() part, inculding its arguments.
The first two arguments are required, the last two/three arn't.

How can i extract/match/replace this part?

Thx in advance.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux