Semicolon

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Semicolon

Post by amir »

Is it possible that on some servers (depending of server configuration)

Code: Select all

<?=$_SESSION["server_id"]?>     returns 0
while
<?=$_SESSION["server_id"];?>    returns the correct value ?

Please note that first <?=$_SESSION["server_id"]?> don't have ';' character before.
TIA
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

never heard of it.
But <?= depends on short_open_tag=on
Post Reply