Jump to content

[SOLVED] PHP 4 to 5 short tag/syntax question...


php.nub

Recommended Posts

Hi,

 

I've been a PHP 5 programmer for a while now... and am self taught.

I'm trying to convert a PHP 4 script to PHP 5... but have come across a short tag which i'm not quite sure how to re-write in PHP 5 - with short tags disabled.

 

The PHP 4 short tag is:

 

<?=

 

Now I want to convert that to PHP 5... I assumed that the correct way to do that in PHP 5 would be to do the following:

 

<?php echo

 

But that only seems to do what was intended for some of the functions of the PHP script...

e.g. it doesn't seem to work for:

 

<?=iif($_type=="today", $_SUPP["language"]["dashtoday"], $_SUPP["language"]["dashnewstitle"])?>

 

I would much appreciate it if someone would enlighten me as to what the correct php 5 tag would be - with short tags disabled.

 

Many Thanks,

~php.nub

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.