what is difference between “$a dollars” or “{$a} dollars” ?

January 15, 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

?>

Comments

Comments are closed.

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker