質問編集履歴

1

変数名に誤りがあった為編集しました。(元のコードの変数名を汎用的なものに書き換えた際のミスです)

2018/09/29 04:37

投稿

melmelme
melmelme

スコア38

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  $replace = array('ニュース','コラム','インタビュー');
26
26
 
27
- $replaced_str = str_replace($search,$replace,$category_names);
27
+ $replaced_str = str_replace($search,$replace,$replace_names);
28
28
 
29
29
 
30
30
 
@@ -32,4 +32,20 @@
32
32
 
33
33
 
34
34
 
35
+ 出力結果(何も変わりませんでした)
36
+
37
+ ```PHP
38
+
39
+ ---------
40
+
41
+ C:\xampp\htdocs\~~~~略 : eval()'d code:9:string '<a href="http://localhost/column/" rel="category tag">COLUMN</a><a href="http://localhost/essay/" rel="category tag">ESSAY</a><a href="http://localhost/interview/" rel="category tag">INTERVIEW</a>'
42
+
43
+ ----------
44
+
45
+ ```
46
+
47
+
48
+
49
+
50
+
35
51
  ご教授頂けましたら幸いですmm