What tag is used to cause PHP to start interpreting program code?
And what is the short form of the tag?
Well, I’m not 100% sure what you are asking, but I’m pretty sure I know. In PHP code, the line:
<?php
- is always used to start "interpreting," as you stated, PHP code, along with:
?>
- to end the "interpretation." For example:
<?php
$string = "value";
echo $string;
blah blah blah
?>
The short version of the beginning code is: <?
So, it could also be:
<?
$string = "value";
echo $string;
blah blah blah
?>
However, you should know that in some versions of PHP, the "<?" tag is not accepted, so it is always best to just use "<?php".
Good luck (:
Well, I’m not 100% sure what you are asking, but I’m pretty sure I know. In PHP code, the line:
<?php
- is always used to start "interpreting," as you stated, PHP code, along with:
?>
- to end the "interpretation." For example:
<?php
$string = "value";
echo $string;
blah blah blah
?>
The short version of the beginning code is: <?
So, it could also be:
<?
$string = "value";
echo $string;
blah blah blah
?>
However, you should know that in some versions of PHP, the "<?" tag is not accepted, so it is always best to just use "<?php".
Good luck (:
References :
Me