Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
if (strpos($str, ',') !== false) { ... }
//*[@*[starts-with(name(), "data-")]="123"]
$url = 'https://export.yandex.ru/last/last20x.xml'; $content = file_get_contents($url);
use DiDom\Document; $url = 'https://export.yandex.ru/last/last20x.xml'; $document = new Document($url);
foreach($array as $index => $element) { if ($index < 1) { continue; } // ... }
preg_match_all('/\%field_(\w)\%/ig', $str, $matches);
preg_match('/\b(цена)\b/i', $text)
$header = preg_replace('/\<title[^>]*\>[^<]*\<\/title[^>]*\>/is', '', $header);