Is the following valid PHP?
<?php
function a($a) {
?>
<p><?=$a?></p>
<?php
}
?>
(I know this is not a good idea, just want to know if it’s possible.)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Enable short_tages in php.ini file
If you try to run this program using
<?=this won’t allowed it will give you errorAs of PHP 5.4.0,
<?= ?>PHP tags are available regardless of short_open_tag ini setting.