Like Post
If a specific post was interesting or useful to you, we recommend that you Like that post. It tells the post author, and others, that you found the information valuable. Clicking Like is another way to let others know that you enjoy it without leaving a comment.

Log in to join the conversation and Like this content.
Members Who Like This Post
Gizmo
Total Likes: 1
Re: restrict moderators from control panel completly #323484 May 10th a 09:04 PM
by isaac
isaac
Originally Posted by Ruben Rocha
I assume it is just a placeholder like EOF in the islands.
But what is it purpose.

It is a php "heredoc"
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc

The heredoc syntax is a much cleaner way (useful) to work with multi-line strings and avoid quoting issues. They are a great alternative to quoted strings because of increased readability and maintainability. You don't have to escape quotes and (good) IDEs or text editors will use the proper syntax highlighting.

A very common example: echoing out HTML from within PHP:
Code
$html = <<<HTML
  <div class='something'>
    <ul class='mylist'>
      <li>$something</li>
      <li>$whatever</li>
      <li>$testing123</li>
    </ul>
  </div>
HTML;

// Sometime later
echo $html;

https://stackoverflow.com/questions/5673269/what-is-the-advantage-of-using-heredoc-in-php
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,554
Posts293,840
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 171
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 14
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,813
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 4
Morgan 2
isaac 1
Top Likes Received
isaac 66
Gizmo 13
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
Gizmo 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.019s Queries: 10 (0.006s) Memory: 2.9381 MB (Peak: 2.9903 MB) Data Comp: Zlib Server Time: 2021-04-15 00:08:20 UTC
Valid HTML 5 and Valid CSS