Let us first say the PHP echo () function
Definition 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 on 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 a shorthand syntax. Before PHP 5.4.0, this syntax only applies when Short_open_tag configuration settings are enabled.
Grammar
Echo (Strings)
parameter |
description |
Strings |
Necessary. One or more strings to send to the output. |
Technical details
return value: |
no return value. |
PHP version: |
4 + |
The connection format for the PHP echo string is described below:
echo "
1. \ "\"
Echo <<
< pre="">
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);? >Bob ' s Auto Parts
Bob ' s Auto Parts
<?phpfor ($i =; $i <; $i + +) {echo]
| ";}? >
The above content mainly for you to introduce the PHP echo string connection format, I hope to help you!