質問編集履歴

3

修正前に戻します。

2018/04/30 13:50

投稿

tozawa-n
tozawa-n

スコア19

test CHANGED
File without changes
test CHANGED
@@ -32,11 +32,11 @@
32
32
 
33
33
  ob_start();
34
34
 
35
- include_once( dirname( __FILE__ ) . '/../style.css' );
35
+ include_once( dirname( __FILE__ ) . '/style.css' );
36
36
 
37
37
  $hoge = ob_get_contents();
38
38
 
39
- $hoge = preg_replace( '???', '', $hoge );
39
+ $hoge = str_replace( '???', '', $hoge );
40
40
 
41
41
  echo $hoge;
42
42
 

2

コードミス修正

2018/04/30 13:50

投稿

tozawa-n
tozawa-n

スコア19

test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  $hoge = ob_get_contents();
38
38
 
39
- $hoge = str_replace( '???', '', $hoge );
39
+ $hoge = preg_replace( '???', '', $hoge );
40
40
 
41
41
  echo $hoge;
42
42
 

1

コードの修正

2018/04/30 13:44

投稿

tozawa-n
tozawa-n

スコア19

test CHANGED
@@ -1 +1 @@
1
- PHPで正規表現に関
1
+ PHPで正規表現を使って文字列を削除たいです!
test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  ob_start();
34
34
 
35
- include_once( dirname( __FILE__ ) . '/style.css' );
35
+ include_once( dirname( __FILE__ ) . '/../style.css' );
36
36
 
37
37
  $hoge = ob_get_contents();
38
38