Toby's Development Blog Just another PHP / Javascript Developer

23Jul/090

PHP Whitespace/Comment Removal

Here is a handy script that removes whitespace and comments from PHP code and it came via the rather excellent technical blog by Charles Reace.

Whilst I would argue that whitespace and comments don't account for any real noticeable performance drop I guess it is good practice to perform obfuscation on any code that will be going into production, you do it with your JavaScript and CSS, so why not your PHP?

  • Digg
  • Delicious
  • Facebook
  • Reddit
  • Ping
  • Twitter
  • Share/Save/Bookmark

Hello

I am a PHP and JavaScript developer who works for Team Solutionz.

This website is what I use to talk about things most of my friends don't want me to talk about to them! For some reason they find coding alien and boring... I have strange friends.

Subscribe via RSS

New Posts

Old Posts

Categories

Links

Other Links

Sign Up and Comment!

What I talk about