PHP Echo string connection format, phpecho string format

Source: Internet
Author: User

PHP Echo string connection format, phpecho string format

Let's talk about 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 need to use parentheses for it. However, if you want to pass more than one parameter to echo (), using parentheses will generate a resolution error.

Prompt: The echo () function is faster than print.

PromptThe echo () function also has a short syntax. Before PHP 5.4.0, this syntax is only applicable when short_open_tag configuration is enabled.

Syntax

Echo (strings)

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

Technical details

Return Value: No return value.
PHP version:

4 +


The connection format of the PHP Echo string is described as follows:

echo "<td align=\"center\">


1 .\"\"

2.

echo <<<theEndline 1line 2line etheEnd 

Instance

Three random images (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 introduces the connection format of the PHP Echo string, hoping to help you!

Articles you may be interested in:
  • Php echo output string functions
  • PHP learning output string (echo, print, printf, print_r and var_dump)

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.