curl_setopt($ch, CURLOPT_HEADERFUNCTION, array('ClassName', 'CallbackMethod'));
и/илиcurl_setopt($ch, CURLOPT_HEADERFUNCTION, 'ClassName::CallbackMethod');
foreach ($arItem["DETAIL_PICTURE"] as $arWork){
if( $arWork == 'нужно мне' ) {
echo "Во мне живёт ".$arWork." !<br>";
}
}
firstarray = getsomething1()
secondarray = getsomething2()
getsomething3(firstarray, secondarray)
илиgetsomething3(getsomething1(), getsomething2())