[TYPO3-core] RFC: uninitialized variables code cleanup

Dmitry Dulepov dima at spamcop.net
Thu Jan 19 12:15:26 CET 2006


Hi!

Michael Stucki wrote:
> No idea since I'm not using Zend IDE. Well, if you make that change then I
> prefer the 2nd option:
> 
> $matches=array();
> if (preg_match('/xyz/', $string, $matches)

I also prefer to have declared variables before passing them anywhere.
It just makes code easier to read.

Dmitry.



More information about the TYPO3-team-core mailing list