Created
September 16, 2018 10:38
-
-
Save evrekhman/e3f7a02207306f3b139fc167a0a3a3ea to your computer and use it in GitHub Desktop.
Binnary search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ключ1\tзначение1\x0Aключ2\tзначение2\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<? | |
$homepage = file_get_contents('bin.txt'); | |
$str = mb_convert_encoding($homepage, "UTF-8", "ASCII"); | |
$arrayName = array(); | |
$arra = explode("\\x0A", $homepage); | |
foreach ($arra as $key => $value) { | |
$arra2 = explode("\\t", $value); | |
$res = array_merge($arrayName, $arra2); | |
} | |
print_r($res); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment