I have just downloaded a PHP blog script and am having a few issues with the syntax used in it.
There are several instances when this code occurs:
<?=$miniblog_posts?>
Now this doesn't do anything. To get it to work I have to change it to this.
<?php echo $miniblog_posts; ?>
Is this an old way of writting php that is not supported anymore or am I missing something.
I am running PHP V5.3.1
http://php.net/manual/en/function.echo.php
See the shortcut syntax doc.
echo() also has a shortcut syntax, where you can immediately follow the opening tag with an equals sign. This short syntax only works with the short_open_tag configuration setting enabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With