CRITICAL
Rule Definition
When using function Echo with periods, PHP has to concatenate the strings before it outputs and therefore decrease the performance. If instead of using periods, echo function is used with commas, , it just outputs them in order with no extra processing and therefore the performance are much better.
Remediation
Try and limit the use of echo function using period. Try and used instead the same echo function using commas.
Violation Code Sample
<?php
echo 'this' . 'string' . 'has' . 'been made' . 'using the concatenation' . "\n"; //Violation
?>
Fixed Code Sample
<?php
echo 'this ', 'string ', 'has', 'been made', 'with several parameters.', chr(10); // Violation removed
?>
Related Technologies
Technical Criterion
Efficiency - Memory, Network and Disk Space Management
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.