Posted by Colin McKinnon on 10/13/05 23:35
Umberto Salsi wrote:
> ralphNOSPAM@primemail.com wrote:
>
>> Is there a PHP script that can find unused variables? I'd like to
>> 'clean up' my scripts.
>
> $ phplint --print-context text.php
phplint is an interesting tool but it was originally designed for the
express purpose of making PHP behave as if it were not dynamically typed -
so you're likely to have problems seeing the wood for the trees unless you
use PHP to run your Java/C++ programs ;) Although I'll concede that PHP
might benefit from something like Perl's strict mode.
IIRC the Zend IDE will do this and can also track code coverage - which is
likely to be much more beneficial.
C.
Navigation:
[Reply to this message]
|