heredoc. Remember it from Perl?
$x = "variable interpolation works here too";
echo <<<EOL
<--- string starts here
`~!@#%^&*()_+-={}|[]\:";'<>?,./
all works except \$
$x
string ends here --->
EOL;
// will print
// <--- string starts here
// `~!@#%^&*()_+-={}|[]\:";'<>?,./
// all works except $
// variable interpolation works here too
// string ends here --->
Regular expression. Too many features to go over here.
No comments:
Post a Comment