slanton Posted November 6, 2006 Share Posted November 6, 2006 I have seen some code with this <?= ..what is it? If you type it into google it returns a blank page. Quote Link to comment https://forums.phpfreaks.com/topic/26291-what-does-this/ Share on other sites More sharing options...
.josh Posted November 6, 2006 Share Posted November 6, 2006 it's shorthand for inserting for instance a variable into your otherwise plain old html. for instance:[code]<?php $pirate = 'yaaar!';?><html><body> a pirate says <?= $pirate ?></body></html>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/26291-what-does-this/#findComment-120229 Share on other sites More sharing options...
obsidian Posted November 6, 2006 Share Posted November 6, 2006 [quote author=Crayon Violent link=topic=113972.msg463526#msg463526 date=1162803753]it's shorthand for inserting for instance a variable into your otherwise plain old html.[/quote]In other words, it's simply a shorthand for an echo statement ;). Keep in mind that there can't be any calculations that require variable assignment within those PHP tags, though. You are only [b]outputting[/b] all the results of whatever comes between them. Quote Link to comment https://forums.phpfreaks.com/topic/26291-what-does-this/#findComment-120299 Share on other sites More sharing options...
Jenk Posted November 6, 2006 Share Posted November 6, 2006 and also note they are soon to be deprecated, and are not always on across hosts, so best to avoid. Quote Link to comment https://forums.phpfreaks.com/topic/26291-what-does-this/#findComment-120319 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.