Display a list of all PHP classes that are called statically

find . -name "*\.php" | xargs grep -o --color "\w\+::\w\+" | cut -d":" -f2 | sort | uniq -c
Searches all .php files for a static instantiation of a class and displays the class names along with their frequencies.

4
By: root
2009-01-20 23:18:06

What Others Think

I missed this topic during my PHP classes and I am so much happy that I have found accurate information here about that topic. Now I can make assignments easily which I was assigned by my programming teacher. Well, I was thinking to design my website and my friend sent me https://www.worknplay.co.kr/Story/Detail/Article/534 article in which I came to know about the importance of fonts for a website and how they help to engage with the audience.
HayleyRice · 168 weeks and 4 days ago
Thank so much! https://wordgames.gg/dordle
chanvova · 90 weeks and 4 days ago
Thank so much! dordle
chanvova · 90 weeks and 4 days ago
One of the must-have applications is word unscrambler, which supports intellectual word games
yangyeo339 · 73 weeks and 3 days ago
Play connect 4 for free online
blabling2 · 45 weeks and 3 days ago
Thanks a lot for your sharing. Let's play the Fnaf to relax
marryjanes · 41 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: