Home
Random
Log in
Settings
About LemonWiki共筆
Disclaimers
LemonWiki共筆
Search
Editing
Print string
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Print the string spanning multiple lines == PHP == Using the Heredoc syntax<ref>[https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc PHP: Strings - Manual]</ref> to print the string spanning multiple lines <pre> <?php echo <<<'EOD' The quick brown fox jumps over the lazy dog using nowdoc syntax. Backslashes are always treated literally, e.g. \\ and \'. EOD; </pre> == Python == Using triple quotes<ref>[https://www.geeksforgeeks.org/triple-quotes-in-python/ Triple Quotes in Python - GeeksforGeeks]</ref> to print the string spanning multiple lines <pre> print("""The quick brown fox jumps over the lazy dog""") </pre> == Related pages == * [[Random content generator]] == References == <references /> [[Category:Programming]] [[Category:String manipulation]]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki共筆:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)