Connection format for PHP Echo string _php instance

Source: Internet
Author: User
Tags configuration settings parse error

First of all, let's say PHP echo () function

Definitions and usage

The Echo () function outputs one or more strings.

Note: the Echo () function is not actually a function, so you do not have to use parentheses over it. However, if you want to pass more than one argument to echo (), using parentheses will generate a parse error.

tip : the Echo () function is slightly faster than print ().

tip : the Echo () function also has shorthand syntax. Before PHP 5.4.0, this syntax only applies to situations where Short_open_tag configuration settings are enabled.

Grammar

Echo (Strings)

Parameters Description
Strings Necessary. One or more strings to be sent to the output.

Technical details

return value: no return value.
PHP version:

4 +


The connection format for the PHP echo string is described as follows:

 
 


1. \ "\"

2.

echo <<<theend line
1 line
2 line
E

Instance

Random three photos (banner)

<?php
$pictures = Array (' tire.jpg ', ' oil.jpg ', ' spark_plug.jpg ',
' door.jpg ', ' steering_wheel.jpg ',
' Thermostat.jpg ', ' wiper_blade.jpg ', '
gasket.jpg ', ' brake_pad.jpg ');
Shuffle ($pictures);
? >
 
 

The above content mainly to introduce PHP echo string connection format, I hope to help!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.