Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.