php cli newline example_PHP tutorial

WBOY
Release: 2016-07-13 10:32:04
Original
764 people have browsed it

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...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template