Created
January 26, 2017 10:48
-
-
Save starx/07ef940b111327269223c77136806ed9 to your computer and use it in GitHub Desktop.
PHP: Calling a function inside HEREDOC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo <<<EOT | |
One month ago was ${!${''} = date('Y-m-d H:i:s', strtotime('-1 month'))}. | |
EOT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment