回答編集履歴
8
修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
```PHP
|
4
4
|
|
5
|
-
$brandName = (ctype_alpha(substr($hoge_name , 0, 1))) ? ' '.$hoge_name : $
|
5
|
+
$brandName = (ctype_alpha(substr($hoge_name , 0, 1))) ? ' '.$hoge_name : $hoge_name;
|
6
6
|
|
7
7
|
$body = "ブランド名". $brandName ."のご購入ありがとうございます。";
|
8
8
|
|
7
修正
test
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
```PHP
|
4
4
|
|
5
|
-
|
5
|
+
$brandName = (ctype_alpha(substr($hoge_name , 0, 1))) ? ' '.$hoge_name : ${hoge_name};
|
6
6
|
|
7
|
-
|
7
|
+
$body = "ブランド名". $brandName ."のご購入ありがとうございます。";
|
8
|
-
|
9
|
-
}
|
10
8
|
|
11
9
|
|
12
10
|
|
13
|
-
$body
|
11
|
+
echo $body;
|
12
|
+
|
13
|
+
|
14
14
|
|
15
15
|
```
|
6
修正
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
if (ctype_alpha(substr($hoge_name , 0, 1))) {
|
6
6
|
|
7
|
-
$hoge_name = ' '.$
|
7
|
+
$hoge_name = ' '.$hoge_name;
|
8
8
|
|
9
9
|
}
|
10
10
|
|
5
修正
test
CHANGED
@@ -2,13 +2,9 @@
|
|
2
2
|
|
3
3
|
```PHP
|
4
4
|
|
5
|
-
if (ctype_alpha(substr($
|
5
|
+
if (ctype_alpha(substr($hoge_name , 0, 1))) {
|
6
6
|
|
7
7
|
$hoge_name = ' '.$value["hoge_name"];
|
8
|
-
|
9
|
-
} else {
|
10
|
-
|
11
|
-
$hoge_name = $value["hoge_name"];
|
12
8
|
|
13
9
|
}
|
14
10
|
|
4
修正
test
CHANGED
@@ -4,7 +4,11 @@
|
|
4
4
|
|
5
5
|
if (ctype_alpha(substr($value["hoge_name"] , 0, 1))) {
|
6
6
|
|
7
|
-
|
7
|
+
$hoge_name = ' '.$value["hoge_name"];
|
8
|
+
|
9
|
+
} else {
|
10
|
+
|
11
|
+
$hoge_name = $value["hoge_name"];
|
8
12
|
|
9
13
|
}
|
10
14
|
|
3
修正
test
CHANGED
@@ -10,6 +10,6 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
$body = "ブランド名$
|
13
|
+
$body = "ブランド名". $hoge_name ."のご購入ありがとうございます。";
|
14
14
|
|
15
15
|
```
|
2
修正
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
if (ctype_alpha(substr($value["hoge_name"] , 0, 1))) {
|
6
6
|
|
7
|
-
$hoge_name = ' '.$hoge_name;
|
7
|
+
$hoge_name = ' '.$value["hoge_name"];
|
8
8
|
|
9
9
|
}
|
10
10
|
|
1
編集
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
$bodyの中ではなくその前に処理すればよいかと。
|
1
|
+
$bodyの中ではなく、その前に処理すればよいかと。
|
2
2
|
|
3
3
|
```PHP
|
4
4
|
|