I really wish Php added support for Perl's qq and q operators sometime too (1)
It would really make writing scripts a lot easier and cleaner.
It would really make writing scripts a lot easier and cleaner.
[1]: https://www.php.net/manual/en/language.types.string.php#lang...
[1] https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes
This approach also has the added bonus of stopping PHP from accidentally evaluating something inside the strings.