Whitespace and Line Breaks in php

In general, whitespace doesn’t matter in a PHP program. You can spread a statement across any number of lines, or lump a bunch of statements together on a single line. For example, this statement:

raisePrices($inventory, $inflation, $costOfLiving, $greed);

could just as well be written with more whitespace:

raisePrices (
$inventory ,
$inflation ,
$costOfLiving ,
$greed
) ;

or with less whitespace:

raisePrices($inventory,$inflation,$costOfLiving,$greed);

Leave a Comment