Yes, just use " instead of '. Using ' causes the contents to be treated as literal strings, and the $ is therefore not treated as a $. Just do:
echo "<a href=\"$address\">"; Martin Johansson wrote: >Is there a way to express php variables inside an echo ' '. > >I want something like this to work: > >echo '<a href="$address">'; > >I know I can write it like this: >echo '<a href="'; >echo "$address"; >echo '">'; > >But Its to hard to read the code like this. >/Martin > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php