Patrick Allaert's Blog: Coding standards: converts PHP4 style constructors to PHP5 one
PHP Developper (Free subscription) | 10/30/2009
Patrick Allaert has put together a shell command that can take your PHP4 code and replace its current constructors with PHP5-formatted ones. It assumes your classes are always declared with the class keyword starting at the beginning of the line and that your files have the .php extension. It uses a regular expression in a perl command to search through the current directory and look...


