Mac OS X: A Keyboard Shortcut for Maximize Window | Home | Empty Subclasses Are Good

Filed under Quick Tips on August 4, 2008 by Ben Sgro

DoubleChecking your PHP

PHP allows you to define variables anywhere, at any time. They do not have to be defined prior to use. This can lead to silly bugs when you misspell a variable name. Anytime I found one of these errors in my code, I'd say to myself, "I wish I had a script that could show me alphabetized variable lists with a count" - so I built this script to save myself debugging time.

DoubleCheck (db.php) can be run against a PHP file and will output an alphabetized list of variables with their count. It will also print out methods with their count. Its still in version 0.1 and I hope to expand on it in the future.

Feel free to contact me with request or bug fixes.

Enjoy!

Post a Comment Digg Del.icio.us

Trackback Pings (TrackBack URL for this entry)

http://www.arc90.com/cgi-bin/mt4/mt-tb.cgi/180.

Comments

what text editor you dont use? there is a lot of IDE's that can help you with the variable list...

Posted on August 15, 2008 12:57 PM by Manolo

I use Komodo IDE.

Posted on August 15, 2008 1:05 PM by Ben Sgro aka Mr-sk

Post a Comment:

Mac OS X: A Keyboard Shortcut for Maximize Window | Main | Empty Subclasses Are Good