sort ($file); // сортируем по алфавиту
$file = array_map('trim', $file); // <---------------
$file = array_unique($file); // убираем повторыfile_get_contents ( string $filename [, bool $use_include_path = FALSE [, resource $context [, int $offset = 0 [, int $maxlen ]]]] ) : string
file_get_content($url1);
file_get_content($url2);
file_get_content($url3);
//или то же самое в цикле<?php
$urls = [
"https://api.best-proxies.ru/proxylist.txt?key=c5842ced830******555e0460b1&country=at&limit=0",
"https://api.best-proxies.ru/proxylist.txt?key=c5842ced830******555e0460b1&country=bo&limit=0",
"https://api.best-proxies.ru/proxylist.txt?key=c5842ced830******555e0460b1&country=at&limit=0",
];
$string = "";
foreach($urls as $url)
{
$string .= "\n".file_get_contents($url);
}
$string_array = explode("\n", $string);
$final_array = array_unique($string_array);
$final_string = implode("\n", $final_array);
echo $final_string; substr_replace($str, '.', 1, 0); - вставить "." после первого символа строки $str<?php
$page = file_get_contents("https://etherscan.io/dapp/0x71ee6E4fD5F2E70eD5e6fBAf853AE3B223564BCa#readContract");
preg_match('!buyPrice:.*?([0-9]+)<!si', $page, $out);
$buyPrice = $out[1] ?? 0;
var_dump($buyPrice); //404778000000000
$buyPriceDot = substr_replace($buyPrice, '.', 1, 0);
var_dump($buyPriceDot); //4.04778000000000 sed -i -- 's/foo/bar/g' *find . -type f -exec sed -i 's/foo/bar/g' {} +<?php
//$db = new mysqli(); //соединение с БД
$min_id = 0;
$LIMIT = 1000;
//в цикле идём от id = 0 до id = "самый максимальный", выбирая по 1000 записей за раз.
while(true)
{
$result = $db->query("SELECT * FROM `table` WHERE `id` > '{$min_id}' LIMIT {$LIMIT}");
//если записей больше не найдено прерываем цикл
if($result->num_rows == 0)
{
break;
}
while($row = $result->fetch_assoc())
{
//обрабатываем данные производим манипуляции
//сохраняем последний обработанный id
$min_id = $row['id'];
}
} <?php
$opts = array(
'socket' => array(
'bindto' => '10.10.1.1:0',
)
);
$context = stream_context_create($opts);
$file = file_get_contents("https://site.com/", false, $context);<?php
$auth = base64_encode('LOGIN:PASSWORD');
$aContext = array(
'http' => array(
'proxy' => 'tcp://192.168.0.2:3128',
'request_fulluri' => true,
'header' => "Proxy-Authorization: Basic $auth",
),
);
$cxContext = stream_context_create($aContext);
$sFile = file_get_contents("http://www.google.com", False, $cxContext);
echo $sFile;$strUtf = iconv('CP1251', 'UTF-8', $str_from_file);if(mb_strtoupper($str1) == mb_strtoupper($str2)) 
echo nl2br($String); <?php
ignore_user_abort(true);
set_time_limit(0);if (window.screen.width < 1300) {
}<?php
$parts = array_chunk($all_users->response->profiles, 100);
print_r($parts); <?php
ini_set('display_errors', 1);
error_reporting(-1);
ini_set('memory_limit', '512M'); //512Mb
//тут ваш код