Hello, does all php versions accept the <?= ?> or no ??

Don't you think for designers <?= ?> is easier than <? echo ?>

Thank you

Recommended Answers

All 5 Replies

Member Avatar for diafol

Not all servers are configured to accept short tags. It may be easier, but more dangerous if you move your site to a different server / host.

Just use full tags - can't be that difficult surely?

I can't see why you'd need to use too many php tags anyway. If you separate your html and php properly or even use a templating engine.

ardav Thank you ... I am using framework and I can see in approx all video tutorials they are using <?= ?> instead of <?php echo ?>, it makes me curious to know more about it!!

Member Avatar for diafol

OK solved?

in version of server

yup Solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.