Skip to content

Instantly share code, notes, and snippets.

@anova
Created October 31, 2013 10:27
Show Gist options
  • Save anova/7247494 to your computer and use it in GitHub Desktop.
Save anova/7247494 to your computer and use it in GitHub Desktop.
Access array in double quoted strings. (from php manual comments)
<?php
$test = array(
'test' => 'I can access arrays and objects in curly braces.',
);
echo "This is a test : {$test['test']}";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment