Im trying to do this:
echo '<img src="'. $img_file .'" ' . $imgDem . ' /><br />';
but it comes out like this:
<img src="/images/content/user/3/127.jpg" height="451" width="804"><br>
how can i get it to come out like:
<img src="/images/content/user/3/127.jpg" height="451" width="804" /><br />
PHP won't strip characters from the output, unless you're using some kind of output filter. Most likely whatever you're viewing the HTML in is doing the stripping - Firebug will, for one. Try a plain 'view source' view instead.
Actually, when you view the page source. It's displayed with the \\>
. Are you viewing this from firebug or inspect element from chrome?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.