explicit_defaults_for_timestamp is enabled, the server disables the nonstandard behaviors and handles TIMESTAMP columns as follows:
- It is not possible to assign a TIMESTAMP column a value of NULL to set it to the current timestamp. To assign the current timestamp, set the column to CURRENT_TIMESTAMP or a synonym such as NOW().
`dt` timestamp DEFAULT NULL,
`dt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
To use a literal instance of a special character in a regular expression, precede it by two backslash (\) characters. The MySQL parser interprets one of the backslashes, and the regular expression library interprets the other. For example, to match the string 1+2 that contains the special + character, only the last of the following regular expressions is the correct one:mysql> SELECT REGEXP_LIKE('1+2', '1+2'); -> 0 mysql> SELECT REGEXP_LIKE('1+2', '1\+2'); -> 0 mysql> SELECT REGEXP_LIKE('1+2', '1\\+2'); -> 1
$response = $this->post('/api/upload');
$response
->assertStatus(200)
->assertExactJson([
'code' => 200,
'output' => [],
]);
;
console.dir(array);
let to = ul.children.length
for (let i = 0; i < to; i++) {
// if (ul.children[i].nextElementSibling === null) {
// console.log(i);
// } else {
let clone = elem.cloneNode(false);
ul.insertBefore(clone, ul.children[i].nextElementSibling);
// }
}
let t = [1,2,3];
for (let i=0; i<t.length; i++) {
t.push(i);
if (i>10) break;
}
console.log(t);
// [1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
<?php
if (defined('ENV') && ENV=='dev') {
echo '<div style="padding:15px; font-size: 40px; background-color:red; color:white;"><pre>';
echo htmlspecialchars(file_get_contents('path-to-my-file/todo.txt'));
echo '</pre></div>';
}
=== Очень важно
1. Шевелись плотва!!!
=== Так себе важно
1. Попить чай с зефиркой
$('#shipmentSelect div.form-check input[name="shipmentmethod_id"]').change(function () {
выбирает input, а дальше ты пробуешь найти его потомка$(this).find('a.editShipment').addClass('d-none');
$(this).parent().find('a.editShipment').addClass('d-none');
$model->file->saveAs($dir . $model->file->name)
$dir . $model->file->name
The billing address for your Payoneer card is your own residential street address. To have a US billing address you must be a permanent resident of the US.
The messages you are getting are canned responses,PAYPAL does not work with Paynoneer bank,so dont waste your time,find another bank to link with your Paypal account.
$s = '177';
$r = '~'.preg_quote($s,'~').'.~'; // перед последней тильдой стоит точка, те любой символ
var_dump(preg_match($r, 'а177аа177'));
var_dump(preg_match($r, 'а777аа177'));
$s = '17';
$r = '~'.preg_quote($s,'~').'.*\D+\d+$~'; // в конце должна быть не цифра, потом цифры, потом конец
var_dump(preg_match($r, 'а177аа177'));
var_dump(preg_match($r, 'а777аа177'));
echo off
for /l %%i in (1,1,10) do (
echo ^<^?php > %%i.php
echo php code .. >> %%i.php
echo ^?^>php >> %%i.php
)
echo. >> %%i.php
(т.е. точка на конце echo)