Добрый день!
Имеется скрипт который по ссылке забирает дату со страницы
bit.ly/2Hquqpm foreach($html->find(".breadcrumbs-item") as $value){
$title .= trim($value->plaintext).'.';
}
$title = rus2translit(str_replace(" ","-",preg_replace('/^ +| +$|( ) +/m', '$1', mb_strtolower($title, 'UTF-8'))));
$discountPercent = $html->find(".discount-percent", 0);
$discountPercent = preg_replace("/[^0-9]/", '', $discountPercent);
$oldPrice = $html->find(".old-price", 0);
$oldPrice = preg_replace("/[^0-9]/", '', $oldPrice);
$currentPrice = $html->find(".current-price", 0);
$currentPrice = preg_replace("/[^0-9]/", '', $currentPrice);
$meta = $html->find("[itemprop=priceCurrency]", 0);
и тп
у нас должно сохранятся ".$title.$discountPercent.".".$oldPrice."." .$currentPrice.".".$meta->plaintext."(" .$i.").jpg");
сохраняет сейчас
69 скидка ок
а вот по цене
1926р сохраняет 192620
582р сохраняет 58258220
Необходимо его поправить, так как к сожалению, он забирает еще "руб" валюту, а надо только значения цены.
+ надо все сохранить данные сохранить в md5
Срок сегодня. Полное ТЗ в личку