best way of printing data
<p>for example i want to generate html code, using some data from database.
here is two ways of printing data</p>

<hr>

<pre><code>&lt;? echo '&lt;li&gt;&lt;img src="'.$row['image'].'" /&gt;&lt;/li&gt;';?&gt;
or
&lt;? echo "&lt;li&gt;&lt;img src='$row[image]' /&gt;&lt;/li&gt;";?&gt;
</code></pre>

<p>both of them are working. and if so, why people use the first method, if without spliting the row by <code>.</code> it works fine too.</p>

<hr>

<p>thanks</p>
