Можно использовать и не Excel а php
$originalString = '5 6 7 12 25 56 40 98 15 30 25 22 20 8 6 4 7 5 6 7 12 25 56 40 98 15 30 25 22 20 8 6 4 7 5 6 7 12 25 56 40 98 15 30 25 22 20 8 6 4 7';
$originalArray = implode(' ', $originalString);
rsort($originalArray);
$originalArray = array_slice($originalArray, 0, 16);
echo 'Итого: ', array_product($originalArray);
const STRING = 1;
const INT = 2;
// ...
function get($value, $default = null, $type = self::STRING) {
if (! $value) {
return $default;
}
switch ($type) {
case self::STRING:
$value = addslashes(trim(strip_tags($value)));
break;
case self::INT:
$value = (int) $value;
break;
default:
throw new Exception('Unknown type');
break;
}
return $value;
}
$res = json_decode($response);
echo '<pre>'; var_dump($res);exit;
Order Allow,Deny
Deny from all
<Files "index.php">
Order Deny,Allow
Allow from all
</Files>
switch ($_SERVER['HTTP_REFERER']) {
case 'http://domain.com/page1.php':
$referer = 'PAGE #1';
break;
case 'http://domain.com/page2.php':
$referer = 'PAGE #2';
break;
case 'http://domain.com/page3.php':
$referer = 'PAGE #3';
break;
default:
$referer = '';
break;
}
// ...
if ($referer) {
echo 'Вы пришли с ' . $referer;
}
SELECT * FROM `table`
WHERE (`sid` = 8 AND `rid` = 1 AND `nid` IS NULL)
OR (`sid` IS NULL AND `rid` IS NULL AND `nid` = "привет")
OR (`sid` = 1 AND rid = 2 AND `nid` IS NULL)