Because this is not javascript?

The reason why you do variable defs en-bloc in javascript is because variable definitions in javascript are a little cumbersome. PHP doesn't have this problem and thus we are free to make everything... a little nicer.