質問編集履歴
1
本文追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,12 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
//本文全体
|
24
|
+
|
25
|
+
$array_excerpt = $xmlObject->xpath("//div[@class='content']");
|
26
|
+
|
27
|
+
|
28
|
+
|
23
29
|
//抜粋
|
24
30
|
|
25
31
|
$excerpt = $img_path ? '<p>'.$array_excerpt[0]->p[1].'</p>' : '<p>'.$array_excerpt[0]->p[0].'</p>';
|