View Single Post
Old 12-24-07, 05:12 PM   #7
t3hl33td4rg0n
Dethklok Returns!
 
t3hl33td4rg0n's Avatar
 
Join Date: Dec 2004
Location: Kent, OH
Posts: 2,142
Send a message via AIM to t3hl33td4rg0n Send a message via MSN to t3hl33td4rg0n Send a message via Yahoo to t3hl33td4rg0n
Default Re: Facebook App development

Quote:
Originally Posted by pross
Code:
<?
require_once 'appinclude.php';

echo '<p>hello '.$user.'</p>';
?>
Yup, if your going to use single quotes, it wont process variables, escape strings (ie: \n or \t), and the like; so you have to concatenate the variable as pross has shown.

Code:
$baz = 'zzz';
$foo = ' bar '.$baz.' r00lz '."\n";
Outputs:
Code:
 bar zzz roolz
is also
Code:
$baz = "zzz";
$foo = " bar $baz roolz \n";
Outputs:
Code:
 bar zzz roolz
__________________


Intel QX9650 @ 3.83GHzXFX 780ieVGA GTX 560Ti8GB GSkill DDR800Creative Sound Blaster X-Fi Titanium PCI-ESeagate 1.5TB . 4x Samsung 2TB

Quote:
Originally Posted by MowTin View Post
....it's so clear how government makes things worse not better...
t3hl33td4rg0n is offline   Reply With Quote