0

Hi guys i have the following code and i can't understand why it give an error

syntax error, unexpected 'echo' (T_ECHO)

I have a variable:$Email=$_SESSION['Email'];

And i wont print it on my html table :

<tr>
    <th>Email</th>
    <td><?= echo $Email ?></td>
</tr>

I have alredy tryed everything, but it still don't work...I think that i am trying to print a variable with the wrong command, but i don't know any other way...

M. LAN
  • 21
  • 1

2 Answers2

0

The correct syntax is

<?=$Email;?>
Vivick
  • 3,434
  • 2
  • 12
  • 25
0

The documentation for shorthand expressions is here

What you want is either:

<?= $Email ?>

or, not shorthand,

<?php echo $Email; ?>
Ice76
  • 1,143
  • 8
  • 16