this will work: echo "<p>$something</p>"; this will not work: echo '<p>$something</p>';
what's the correct syntax if i want to use the second case? i've tried echo '<p>' . $something . '</p>'; but it doesn't work either...
$something = 'text'; echo '<p>'.$something.'</p>';
should work!
Try:
var_dump($something);
If something is printed then it should work, otherwise you haven't set your variable properly.