Menu
I have the following in [b]tester.php
[code]<?php
function myfunction(){ print ‘HELLO<br>’; }
print ‘LINE 1<br>LINE 2<br>’.myfunction().’LINE 3<br>’;
?>
This is what I expect to see:
[quote]
LINE 1
LINE 2
HELLO
LINE 3
But instead I get this:
[quote]
HELLO
LINE 1
LINE 2
LINE 3
It seems that my function is being called when defined instead of when I call it between my lines 2 and 3.
Does anyone have an idea of what could be causing this?
Thanks,
Marcus