General PHP SYNTAX: Output $vars
PermalinkThis is very good techniques for cleaner code.
[1] --------"\"--------
<?php echo "<a title=\"{$fileName}\" ...rest of the code ?>
[2]-------dots--------
echo '<li class="' . $ni->classes . '">';
<?php echo "<a title=\"{$fileName}\" ...rest of the code ?>
echo '<li class="' . $ni->classes . '">';
This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
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/