syntax - How to echo php variable from array? -


i need echo this:

echo "<a href="#">$some['variable']</a> 

how can escape [] brackets echo variable in link?

echo "<a href='#'>" . $some['variable'] . "</a>"; 

or

echo "<a href=\"#\">" . $some['variable'] . "</a>"; 

or

echo "<a href='#'>{$some['variable']}</a>"; 

Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -