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. 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] 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. 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. Link to comment https://forums.phpfreaks.com/topic/26291-what-does-this/#findComment-120319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.