重複の可能性:
PHP で HTML を解析および処理する方法は?
私は次のHTMLを持っています:
<Text><strong>Cancellation</strong>
A cancellation is free of charge possible until 6PM on arrival day. With later cancellation or no arrivals without previous cancellation the hotel is justified to place 90% of the booked achievements (excl. breakfast) in calculation whereby the amount at a value of USD 500.00 is not exceeded.
<strong>Check-in time</strong>
Starting from 15:00
<strong>Check-out time</strong>
Until 12:00
<strong>Guarantee</strong>
No guarantee required.</Text>
そして、それを解析して、たとえば次のように配列に保存したい:
array(
'Cancelation' => 'A cancellation is free of charge possible until 6PM on arrival day. With later cancellation or no arrivals without previous cancellation the hotel is justified to place 90% of the booked achievements (excl. breakfast) in calculation whereby the amount at a value of USD 500.00 is not exceeded.',
'Check-in time' => 'Starting from 15:00',
'Check-out time' => 'Until 12:00',
'Guarantee' => 'No guarantee required.'
);
事前にヒントをありがとう。