General PHP SYNTAX: Output $vars
Permalink
What is the name of this kind of writing? (I want to read more about this in PHP docs).
This is very good techniques for cleaner code.
[1] --------"\"--------
[2]-------dots--------
This is very good techniques for cleaner code.
[1] --------"\"--------
<?php echo "<a title=\"{$fileName}\" ...rest of the code ?>
[2]-------dots--------
echo '<li class="' . $ni->classes . '">';
Additionally, for best practices for php you should most definitely read over the PHP Framework Interop Group's (PHP-FIG) guidelines. Many modern php applications adhere to these standards and the group is active in developing improved standards all the time (PSR-1 and PSR-2 namely for syntax/formatting guidelines)http://www.php-fig.org/