Welcome Guest, Not a member yet? Register   Sign In
Alternative Control Structures
#3

[eluser]Milos[/eluser]
Thanks.

Still I don't understand why can't I echo like this:

Normally to echo, or print out a variable you would do this:
<?php echo $variable; ?>

With the alternative syntax you can instead do it this way:
<?=$variable?>

So in my case:

<?php echo $r->contents; ?>

<?= $r->contents?> don't work.


Messages In This Thread
Alternative Control Structures - by El Forum - 09-21-2010, 12:38 PM
Alternative Control Structures - by El Forum - 09-21-2010, 01:03 PM
Alternative Control Structures - by El Forum - 09-21-2010, 02:57 PM
Alternative Control Structures - by El Forum - 09-21-2010, 03:03 PM
Alternative Control Structures - by El Forum - 09-21-2010, 03:39 PM
Alternative Control Structures - by El Forum - 09-21-2010, 07:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB