Bracket counting in php

bracketcount
Been quite ill this week so far, but in on of my few lucid moments, I remembered that I never actually put this up on my blog.

A while back I made a simple bracket counting utility that I use against my php scripts when I get stuck. Basically, all it does is give you numbered counts of brackets and quotes in the script you run it against. This can become invaluable to know that you are one left bracket short or something like that when your php doesn’t want to work. At lest it has been useful to me and a few of my friends 😉

Have at it world! The code is:

#!/usr/bin/php

Leave a Reply

You must be logged in to post a comment.