Помогите переписать под multi_curl такой код
PHP:
скопировать код в буфер обмена
<?PHP function naim(){ function naime ($cook){ $urll = 'http://mgero.mobi/game/battle/mercenary/new?type=crystal'; $url = 'http://mgero.mobi/game'; //echo $html; if (preg_match('!<a[^>]+href="/game/battle/mercenary/engage?([^ >]+)[^>]*>(.*?)</a>!',$html,$ok)) $na= $ok[1]; return $na;; } function go ($na, $cook){ $urll = "http://mgero.mobi/game/battle/mercenary/engage{$na}"; //echo $html; } 'king', 'ger', ); foreach ($cooks as $cook ) { go(naime($cook), $cook); } }
а то самому не получаетса
|