In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "what are the output commands that are not php". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Write command is not the output command of php, there are two basic output modes in php, the output command is echo and print,echo can output one or more strings, while print allows only one string, and the return value is always 1.
This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.
What command is not an output command of php?
The write command is not an output command for php.
There are two basic output modes in PHP: echo and print.
Note: the printf () function outputs the formatted string.
PHP echo and print statements
The difference between echo and print:
Echo-can output one or more strings
Print-only one string is allowed to be output, and the return value is always 1
Tip: the output speed of echo is faster than that of print. Echo does not return a value, while print has a return value of 1.
PHP echo statement
Echo is a language structure that can be used without parentheses or with parentheses: echo or echo ().
Display string
The following example demonstrates how to use the echo command to output a string (a string can contain a HTML tag):
Example
Display variable
The following example shows how to use the echo command to output variables and strings:
Example
PHP print statement
Print is also a language structure, with or without parentheses: print or print ().
Display string
The following example demonstrates how to use the print command to output a string (a string can contain a HTML tag):
Example
Display variable
The following example shows how to use the print command to output variables and strings:
Example
This is the end of the content of "what are the output commands that are not php". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.