Possible Duplicate:
Are PHP short tags acceptable to use?
<?=$num2?>
$num2 is calling data in an associative array. Is <?= shorthand for <?php echo…? If so what are the limitations and advantages of using this method? I’ve also noticed you can only use = if you’re using the shorthand tags. Why is this?
<?=is short for<? echo. You can only use<?=if you are using shorthand tags as it itself is a shorthand tag. The major disadvantage is it makes your code less portable as many servers don’t allow shorthand tags. Some people might consider it less readable or less explicit. If you have full control of the deployment environment and can enable shorthand tags, go ahead and use it if you prefer that style. If you’re trying to reduce typing, maybe try a PHP templating engine.