4

私は次のようなものができますか?

php>multline start; 
.... $a =<<< EOF 
.... hello hi how are you this is phpSH 
.... hello there its test line 
.... EOF; 
.... multiline end; 

phpshで?

4

2 に答える 2

0

複数行のステートメントの場合、例を見てみましょう。

  1. タイプ:if(条件){
  2. Enterキーを押すだけです
  3. ...そしてあなたが望むものを書いてください。
  4. 複数行のステートメントを閉じます。そして、Enterキーを押して実行します。

ctrl + cを押すと、書き込みをさらにキャンセルできます。

于 2015-02-20T02:40:57.863 に答える
0

たぶんこのように:

php> $test = "
 ... hello hi how are you this is phpSH
 ... hello there its test line
 ... "
    <the_empty_result>
php>
php> echo $test

hello hi how are you this is phpSH
hello there its test line

php>
php> =$test
"\nhello hi how are you this is phpSH\nhello there its test line\n"

また

php> $test = "hello hi how are you this is phpSH
 ... hello there its test line"
    <the_empty_result>
php>
php> echo $test
hello hi how are you this is phpSH
hello there its test line
php>
php> =$test
"hello hi how are you this is phpSH\nhello there its test line"

もちろん、を押しEnterて上記の複数行入力を作成します。

于 2015-03-05T11:51:14.733 に答える