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] --------"\"--------
<?php
echo "<a title=\"{$fileName}\" ...rest of the code
?>


[2]-------dots--------
echo '<li class="' . $ni->classes . '">';

siton
 
exchangecore replied on at Permalink Reply
exchangecore
You should read overhttp://php.net/manual/en/language.types.string.php... for information on strings in PHP.

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/

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.