часть информации в итоге забывается
а жизнь кажется хаотичной,
немного подискутировать.
//$a1 твой первый массив с названиями
//$a2 твой второй массив с данными
//$a3 Новый массив где будет все вместе
$a3=array();
foreach ( $a1 as $key => $value ) {
$a3[$value]=$a2[$key];
}
//$a1 общий массив с массивами
$danii=$a1[0];
foreach ( $a1 as $key => $value ) {
If ($key!=0) {
$m1=$a1[$key];
foreach ( $m1 as $key1 => $value1 ) {
$kluk=$danii[$key1];
$m1[$kluk]=$value1;
unset($m1[$key1]);
}
$a1[$key]=$m1;
}
}
Cartridge::find()->joinWith('GetCartridge')->joinWith('Otvetstveniy')->all();
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
И тогда БД сможет тебе наконец сказать, что ей не так.function SendNotice($conn, $p1, $p2) {
$sql = "SELECT `id` FROM `users` WHERE `login` = ?";
$row = prepared_query($mysqli, $sql, [$p1])->get_result()->fetch_assoc();
if (!$row['id']) echo 'Ошибка!';
$sql = "INSERT INTO `notifications` VALUES (null, ?, 0, NOW(), ?)";
prepared_query($conn, $sql, [$row[id], $p2]);
}
include 'mysqli.php';
SendNotice($conn, 'test', 'Test text');
Не верю, что среда jvm когда-либо научится использовать ресурсы системы оптимальнее чем нативная платформа.
These days we’re beating the really good C and C++ compilers pretty much always. When you go to the dynamic compiler, you get two advantages when the compiler’s running right at the last moment. One is you know exactly what chipset you’re running on. So many times when people are compiling a piece of C code, they have to compile it to run on kind of the generic x86 architecture. Almost none of the binaries you get are particularly well tuned for any of them. You download the latest copy of Mozilla,and it’ll run on pretty much any Intel architecture CPU. There’s pretty much one Linux binary. It’s pretty generic, and it’s compiled with GCC, which is not a very good C compiler.
When HotSpot runs, it knows exactly what chipset you’re running on. It knows exactly how the cache works. It knows exactly how the memory hierarchy works. It knows exactly how all the pipeline interlocks work in the CPU. It knows what instruction set extensions this chip has got. It optimizes for precisely what machine you’re on. Then the other half of it is that it actually sees the application as it’s running. It’s able to have statistics that know which things are important. It’s able to inline things that a C compiler could never do. The kind of stuff that gets inlined in the Java world is pretty amazing. Then you tack onto that the way the storage management works with the modern garbage collectors. With a modern garbage collector, storage allocation is extremely fast.