2 Topics

Member Avatar for
Member Avatar for timetraveller1992

I am trying to write a multiline string into a text file but it does not appear as multi-line text. Here's my code $hostname = "localhost"; $username = "root"; $password = "sample"; $dbname = "code"; $code = <<< THECODE ; This is the main configuration file for your web app …

Member Avatar for Lsmjudoka
0
256
Member Avatar for Pro2000

[COLOR="Green"]Hello everybody.. I've read about the "heredoc" way of outputting strings.. Where can we consider this use handy?? Is it used only to avoid escaping the single and double quotation mark?? Also, why is there an identifier to be put at the first and end of the function?? Thanks beforehand.[/COLOR]

Member Avatar for Pro2000
0
136

The End.