Possible Duplicate:
What does '<?=' mean in PHP?
I'm reading someone else's code and I don't think I've come across this before.
if((< ? =date("Y");?>-parseInt($('#year').find('option:selected').val()))<18)
Any thoughts?
Thanks
Possible Duplicate:
What does '<?=' mean in PHP?
I'm reading someone else's code and I don't think I've come across this before.
if((< ? =date("Y");?>-parseInt($('#year').find('option:selected').val()))<18)
Any thoughts?
Thanks
<?=
is short-hand for <?php echo
, but only works if php.ini is setup properly.
That evaluates to:
if((<?php echo date("Y"); ?>-parseInt($('#year').find('option:selected').val()))<18)
But I think its recommended for you to use <?php echo '';?>
instead of <?= ?>
for compatibility reasons.