質問編集履歴
2
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,11 +36,11 @@
|
|
36
36
|
|
37
37
|
```html
|
38
38
|
|
39
|
-
<?php if($a === true)
|
39
|
+
<?php if($a === true): ?>
|
40
40
|
|
41
41
|
<div class="a b">test</div>
|
42
42
|
|
43
|
-
<?php else
|
43
|
+
<?php else: ?>
|
44
44
|
|
45
45
|
<div class="a">test</div>
|
46
46
|
|
@@ -48,11 +48,11 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
<?php if($b === true)
|
51
|
+
<?php if($b === true): ?>
|
52
52
|
|
53
53
|
<div class="c d">test</div>
|
54
54
|
|
55
|
-
<?php else
|
55
|
+
<?php else: ?>
|
56
56
|
|
57
57
|
<div class="c">test</div>
|
58
58
|
|
1
文法の修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
htmlのコーディングについて
|
1
|
+
PHP・htmlのコーディングについて
|
test
CHANGED
@@ -12,11 +12,11 @@
|
|
12
12
|
|
13
13
|
```html
|
14
14
|
|
15
|
-
<div class="a <?php if($a = true):?> b <?php endif: ?>">test</div>
|
15
|
+
<div class="a <?php if($a === true):?> b <?php endif: ?>">test</div>
|
16
16
|
|
17
|
-
<div class="c <?php if($b = true):?> d <?php endif: ?>">test</div>
|
17
|
+
<div class="c <?php if($b === true):?> d <?php endif: ?>">test</div>
|
18
18
|
|
19
|
-
<?php if($a = true):?>
|
19
|
+
<?php if($a === true):?>
|
20
20
|
|
21
21
|
<?php echo 'aaaaaaa'; ?>
|
22
22
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
```html
|
38
38
|
|
39
|
-
<?php if($a = true); ?>
|
39
|
+
<?php if($a === true); ?>
|
40
40
|
|
41
41
|
<div class="a b">test</div>
|
42
42
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
<?php if($b = true); ?>
|
51
|
+
<?php if($b === true); ?>
|
52
52
|
|
53
53
|
<div class="c d">test</div>
|
54
54
|
|