Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
$matches = []; preg_match('~https?://.+$~', 'Тест http://test.ru', $matches); var_dump($matches[0]);
$f = fopen("/path/to/1.php", "w"); $g = fopen("/path/to/2.php", "r"); stream_copy_to_stream($g, $f); fclose($g); fclose($f);
/** * @param string|int $a */ function test($a) {}