08-03-2011, 04:55 AM
I was writing some code and I found something funny. (example)
[lua]
<?php
echo '$variable';
?>
[/lua]
Doesn't work. It works for printing words, but not variables. I didn't know why.
But here's the strange thing that made me mad.
After about a half an hour trying to figure out what's wrong I just started messing around.
It turns out THIS works...
[lua]
<?php
echo("$post");
?>
[/lua]
Wow...THEY ARE THE SAME THING...
[lua]
<?php
echo '$variable';
?>
[/lua]
Doesn't work. It works for printing words, but not variables. I didn't know why.
But here's the strange thing that made me mad.
After about a half an hour trying to figure out what's wrong I just started messing around.
It turns out THIS works...
[lua]
<?php
echo("$post");
?>
[/lua]
Wow...THEY ARE THE SAME THING...