Tag: difference between echo $a or echo {$a}

What is difference between echo $a or echo {$a} ?

January 10, 2010 | Filed Under PHP | Comments Off

Best way to understand the problem is example.

<?php

$a=’Hello’;

Echo “$aworld” // blank because it treat as variable

Echo “{$a}world” // Helloworld

?>

Article written by admin

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker