回答編集履歴
1
コードブロックに修正
test
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
もしかして $discriptionって arrayですか?
|
2
2
|
|
3
|
+
trim()は arrayに対しては無効です。ループしてひとつずつtrim()してください。
|
3
4
|
|
5
|
+
|
6
|
+
|
7
|
+
```php
|
4
8
|
|
5
9
|
$description = str_replace( "\xc2\xa0", " ", $description );
|
6
10
|
|
@@ -11,3 +15,5 @@
|
|
11
15
|
$description[$idx] = trim($item);
|
12
16
|
|
13
17
|
}
|
18
|
+
|
19
|
+
```
|