fubowl Posted August 23, 2007 Share Posted August 23, 2007 Where do you enable the following shortcuts within php... <? instead of <?php && <?=$var1?> instead of <?php echo $var1 ?> Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/66343-php-shortcuts/ Share on other sites More sharing options...
Fjerpje Posted August 23, 2007 Share Posted August 23, 2007 hi there, Those are short open tags. But its best to write the full code down to avoid any errors. Quote Link to comment https://forums.phpfreaks.com/topic/66343-php-shortcuts/#findComment-331886 Share on other sites More sharing options...
tibberous Posted August 23, 2007 Share Posted August 23, 2007 I never use them, just because I think they are a setting in the config file that could conceivably turned off. If they were to do it again, I think they should have used <? instead of <?php, but not that <?php is what you always see, I think <? kind of looks like asp. Quote Link to comment https://forums.phpfreaks.com/topic/66343-php-shortcuts/#findComment-331897 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.