Answer the question
In order to leave comments, you need to log in
Emulating multithreading in php?
Please advise a library for asynchrony in php.
There is a parser and something like this:
$classes = []; // Тут массив классов-парсеров
foreach ($classes as $class) {
$parser = new $class;
$news = new News();
$news->title = $parser->getTitle();
$news->url = $parser->getUrl();
$news->save();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question