1
$channel =<<<_XML_;
  1. what is meaning of above statement ?
  2. Is XML predefined variable ?
  3. What is the meaning of <<<
chris85
  • 23,846
  • 7
  • 34
  • 51
Denil Nair
  • 86
  • 5

1 Answers1

1

This syntax is called a heredoc. It's very convenient to enter long (usually multiline) strings without having to mess around with escaping etc.

Mureinik
  • 297,002
  • 52
  • 306
  • 350