SimpleHtmldom can be used to extract the contents of the first element with class description.
description
$html = str_get_html($html); $html->find(\'.d
$avalable = ($element->find('span.sold-out-text', 0)) ? 1 : 0;
It works for me.