teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

2015/02/09 02:41

投稿

ctutfga
ctutfga

スコア17

title CHANGED
File without changes
body CHANGED
@@ -1,13 +1,11 @@
1
- PHPで 'をアポストロフィに変換する方法を教えて下さい。
1
+ PHPで 'をアポストロフィに変換する方法を教えて下さい。
2
-
2
+
3
- **htmlspecialchars_decode()**を使ってみたのですが、うまく出来ませんでした。
3
+ htmlspecialchars_decode()を使ってみたのですが、うまく出来ませんでした。
4
-
4
+
5
- **html_entity_decode** を試しましたが、駄目でした。
5
+ html_entity_decode を試しましたが、駄目でした。
6
-
7
- ```lang-<ここに言語を入力>
6
+
8
- echo html_entity_decode('I'm happy.')
7
+ echo html_entity_decode('I'm happy.')
9
- ```
8
+
10
-
11
- **I're happy**と返されました。
9
+ はI're happyと返されました。
12
-
10
+
13
11
  どうしたらいいのでしょうか?