質問編集履歴
4
fix
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// hello
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
###
|
|
25
|
+
### test003.php
|
|
26
26
|
```
|
|
27
27
|
<?php
|
|
28
28
|
$hoge = '123';
|
3
修正
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
### test001.php
|
|
10
10
|
```php
|
|
11
|
+
<?php
|
|
11
12
|
const hoge = '123';
|
|
12
13
|
echo "hello" . hoge;
|
|
13
14
|
// hello123
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
|
|
16
17
|
### test002.php
|
|
17
18
|
```php
|
|
19
|
+
<?php
|
|
18
20
|
const hoge = '123';
|
|
19
21
|
echo "hello${hoge}";
|
|
20
22
|
// hello
|
|
@@ -22,6 +24,7 @@
|
|
|
22
24
|
|
|
23
25
|
### test00php3.php
|
|
24
26
|
```
|
|
27
|
+
<?php
|
|
25
28
|
$hoge = '123';
|
|
26
29
|
echo "hello${hoge}";
|
|
27
30
|
// hello123
|
2
修正
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
そもそも無理なのでしょうか?
|
|
8
8
|
|
|
9
9
|
### test001.php
|
|
10
|
-
```
|
|
10
|
+
```php
|
|
11
11
|
const hoge = '123';
|
|
12
12
|
echo "hello" . hoge;
|
|
13
13
|
// hello123
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
### test002.php
|
|
17
|
-
```
|
|
17
|
+
```php
|
|
18
18
|
const hoge = '123';
|
|
19
19
|
echo "hello${hoge}";
|
|
20
20
|
// hello
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
###
|
|
23
|
+
### test00php3.php
|
|
24
24
|
```
|
|
25
25
|
$hoge = '123';
|
|
26
26
|
echo "hello${hoge}";
|
1
修正
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
# 質問
|
|
2
|
-
|
|
2
|
+
`test001.php`は期待する結果を得られています。
|
|
3
|
-
|
|
3
|
+
`test002.php`が定数値が消えています。
|
|
4
|
-
|
|
4
|
+
`test003.php`は期待する結果を得られています。
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
`test002.php`のような文字連結方法で定数値を出力するにはどのように書けばよいでしょうか?
|
|
7
7
|
そもそも無理なのでしょうか?
|
|
8
8
|
|
|
9
|
+
### test001.php
|
|
9
|
-
```
|
|
10
|
+
```
|
|
10
|
-
// (1)
|
|
11
11
|
const hoge = '123';
|
|
12
12
|
echo "hello" . hoge;
|
|
13
13
|
// hello123
|
|
14
|
+
```
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
### test002.php
|
|
17
|
+
```
|
|
16
18
|
const hoge = '123';
|
|
17
19
|
echo "hello${hoge}";
|
|
18
20
|
// hello
|
|
21
|
+
```
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
### test003.php
|
|
24
|
+
```
|
|
21
25
|
$hoge = '123';
|
|
22
26
|
echo "hello${hoge}";
|
|
23
27
|
// hello123
|