回答編集履歴

2

修正

2017/10/03 06:39

投稿

IShix
IShix

スコア1724

test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  { }で囲めば変数を展開する
20
20
 
21
- こともでます。
21
+ こともでます。
22
22
 
23
23
 
24
24
 

1

追記

2017/10/03 06:39

投稿

IShix
IShix

スコア1724

test CHANGED
@@ -1,5 +1,27 @@
1
1
  ヒアドキュメントを使うのはどうですか?
2
+
3
+ [http://www.php-labo.net/tutorial/php/heredocument.html](http://www.php-labo.net/tutorial/php/heredocument.html)
2
4
 
3
5
 
4
6
 
7
+ ```PHP
8
+
5
- [http://www.php-labo.net/tutorial/php/heredocument.html](http://www.php-labo.net/tutorial/php/heredocument.html)
9
+ $msg = <<< EOM
10
+
11
+
12
+
13
+ この中の文字は
14
+
15
+ 自由に折り返せます。
16
+
17
+
18
+
19
+ { }で囲めば変数を展開する
20
+
21
+ こともでします。
22
+
23
+
24
+
25
+ EOM;
26
+
27
+ ```