PHP function echo () definition and usage analysis. Output one or more strings when using the definition and usage PHP function echo. The description of the echo (strings) parameter is required. One or more strings to be sent to the output. Prompt
The front-end must learn the PHP syntax basics and the front-end php syntax. The front-end must learn the basics of PHP syntax. if the front-end php syntax is written in front, PHP is a powerful server-side scripting language for creating dynamic
Explanation of PHP syntax rules and php syntax. Explanation of PHP syntax rules and explanation of php syntax 1. simple syntax rules (variable names are defined in curly brackets, applicable to all PHP versions): $ aflower; echoShereceivedsome $ as;
Most of the time, we use echo. When using PHP for code editing, one or more strings are output normally, and the PHP function echo () is used (). The following describes how to use the PHP function echo.
Definition and usage
The PHP function echo ()
PHP uses the echo syntax to generate a blank line to the output long string. Q: What should I do if I use the echo method in php to output long strings to the webpage to generate empty rows? dutyList [2] [newArray (Instructor, 9), newArray
Copy codeThe Code is as follows:Echo "asd"; // stringEcho "ads $ c"; // string + variableEcho 'ads $ C'; // string asd $ c is not a variableEcho "sd". "";Echo "sd", "";Echo $;Echo $ a. $ B;Echo $ a, $ B;Echo $ a. $ B. $ c;Echo $ a, $ B, $ c;Echo
The difference between echo and print in PHP is phpechoprint. The difference between echo and print in PHP. In general, PHP dynamically outputs HTML content through print and echo statements. in actual use, difference between echo and print in PHP:
Php Learning Log (3)-echo & print, php Learning Log-echo
In php, there are two methods to output the result: echo and print. The following compares the two methods.
Differences between echo and print:
Echo
Print
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.