Home > Backend Development > PHP Tutorial > What is the '<<<' operator in laravel?

What is the '<<<' operator in laravel?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-05 08:59:56
Original
1307 people have browsed it

I checked PHP, it’s a bit similar to bitwise operators, but judging from the example code, it should return HTML nodes.
For example:

<code>$form = <<<FORM
        <form action="form_test" method="POST">
            <input type="hidden" name="_token" value="{$csrf_token}">
            <input type="submit" value="Test"/>
        </form>
FORM;</code>
Copy after login
Copy after login

However, FORM can be replaced by GET, and strangely, the variable $csrf_token can be used in value, but the function csrf_token() cannot be used directly
I am a little confused.

Reply content:

I checked PHP, it’s a bit similar to bitwise operators, but judging from the example code, it should return HTML nodes.
For example:

<code>$form = <<<FORM
        <form action="form_test" method="POST">
            <input type="hidden" name="_token" value="{$csrf_token}">
            <input type="submit" value="Test"/>
        </form>
FORM;</code>
Copy after login
Copy after login

However, FORM can be replaced by GET, and strangely, the variable $csrf_token can be used in value, but the function csrf_token() cannot be used directly
I am a little confused.

This is the Heredoc structure of php, it has nothing to do with the framework

http://php.net/manual/zh/lang...

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template