How can I output html tags containing variables in the thinkphp Template html with php?

Source: Internet
Author: User
! The php code in the slice is in the html of the thinkphp template and cannot be output. the problem lies in several of them: {$ arr [& #39; link & #39. Neither {} nor {} can be removed. My code is as follows: _ bla thinkphpphphtml hybrid


The php code in the slice is in the html of the thinkphp template.
My code cannot be output. the problem lies in several of them: {$ arr ['link. Neither {} nor {} can be removed. Great help
My code is as follows:


If (isset ($ links [0])
{
$ I = 1;
Foreach ($ links as $ arr)
{
If ($ I = 1) echo "\ r \ n ";
If ($ arr ['image']! = '') $ Arr ['image'] =" \ r \ n ";
Echo "";
Echo "URL: {$ arr ['link']}
\ R \ n title: {$ arr ['title']}
\ R \ n image: {$ arr ['image']} \ r \ n ";
$ I ++;
If ($ I> 10) break;
}
}
Else
{
Echo $ errmsg;
}
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.