how should i echo the data
Posted
by Syom
on Stack Overflow
See other posts from Stack Overflow
or by Syom
Published on 2010-05-16T11:36:18Z
Indexed on
2010/05/16
11:40 UTC
Read the original article
Hit count: 172
php
for example i want to generate html code, using some data from database. here is two ways of printing data
<? echo '<li><img src="'.$row['image'].'" /></li>';?>
or
<? echo "<li><img src='$row[image]' /></li>";?>
both of them are working. and if so, why people use the first method, if without spliting the row by .
it works fine too.
© Stack Overflow or respective owner