How to make <?= $value work

Chris Worner

Well-known member
Joined
Apr 15, 2016
Messages
430
Best answers
1
Ratings
40
Points
28
#1
My web developer wrote this code

var amp = '<?= $amp; ?>';

In some cases, my code didn't work and I have to replace with var amp = '<?php echo $amp; ?>';

How can I make <?= understand as <?php echo

Many thanks!
 

Maxoq

Well-known member
Joined
Feb 25, 2015
Messages
384
Best answers
0
Ratings
52 1
Points
28
#2
Find short_open_tag in your hosting control panel or in php.ini and enable it, it will solve your problem.

short_open_tag.jpg
 

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,604
Best answers
4
Ratings
447 13
Points
83
#3
Latest Threads
  • Deleted
  • Deleted by fwh
Replies
0
Views
1
Replies
3
Views
31
  • Deleted
  • Deleted by fwh
Replies
0
Views
1
  • Deleted
  • Deleted by fwh
Replies
0
Views
1

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top