View Single Post

  #3 (permalink)  
Old 09-06-2007
macca
 
Posts: n/a
Default Re: Just Learning PHP


> <?php
> $fred = 'Click here to visit my site;
> echo "<a href='www.mydomain.com'>$fred</a>";
> ?>




Shouldnt that be :

echo "<a href='www.mydomain.com'>{$fred}</a>";


Seriously, What's the deal with using brackets inside am
interpolation?

Reply With Quote