Home  >  Article  >  Backend Development  >  php cli newline example_PHP tutorial

php cli newline example_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:32:04734browse

The existing content of 1.php is as follows:

Copy code The code is as follows:

echo 'hinhi';

Execute the file in the command line:

Copy the code The code is as follows:

bash >> php 1 .php
hinhi

The reason why line breaks cannot be made is very simple, just replace the single quotes with double quotes.

Copy code The code is as follows:

echo "hinhi";

Execute the file in the command line:

Copy the code The code is as follows:

bash >> php 1 .php
hi
hi

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/759333.htmlTechArticleThe existing content of 1.php is as follows: Copy the code as follows: ?php echo 'hinhi'; in the command line Execute the file: Copy the code as follows: bash php 1.php hinhi The original line break cannot be used...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn