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
Post a Comment