for (let i = 0; i < 5; i++) {
console.log(`Inside the loop: ${i}`);
}
console.log(`Outside the loop: ${i}`);
output:
Inside the loop: 0
Inside the loop: 1
Inside the loop: 2
Inside the loop: 3
Inside the loop: 4
and will be error:
Uncaught ReferenceError: i is not defined
because t the variable 'i' only exists and can be accessible inside the for loop block.var counter = 0;
console.log(window.counter); // 0
However, the let variables are not added to the global object:
let counter = 0;
console.log(window.counter); // undefined
var counter = 10;
var counter;
console.log(counter); // 10
However, if we redeclare a variable with the let keyword, we will get an error:
let counter = 10;
let counter; // undefined
php artisan make:model Asset -m -c -r
Long version of the above command would be:php artisan make:model Asset --migration --controller --resource
123
will be encrypted and then decrypted back with AES-128-ECB
encryption algorithm.
Encrypts the text using the secret key sec key
function encrypt_text($text, $secret_key)
{
return openssl_encrypt($text,"AES-128-ECB", $secret_key);
}
Decrypts encrypted text (first parameter) using the secret key (second parameter)function decrypt_text($encrypted_string, $secret_key)
{
return openssl_decrypt($encrypted_string,"AES-128-ECB", $secret_key);
}
Calls the above two functions to perform encryption and decryption// Secret key, that is used to encrypt and decrypt the $text
content
$secret = 'sec key';
// the text that we want to encryption and decryption
$text = '123';
$password_encrypted = encrypt_text($text, $secret);
$password_decrypted = decrypt_text($password_encrypted, $secret);
echo 'Encrypted text: ' . $password_encrypted . '<br>';
echo 'Decrypted password: ' . $password_decrypted;
many to many
relationship user_id
inside user_roles
table must be exactly the same as the id
field inside users
table
Example: if users->id
is bigint(20) unsigned
then user_role->user_id
must be exactly bigint(20) unsigned
print_r(json_encode(getallheaders()));
The result of the above code is:{
"Content-Type": "application/json",
"User-Agent": "PostmanRuntime/7.26.8",
"Accept": "*/*",
"Postman-Token": "a89b677d-776a-45d7-988c-f18ad2512522",
"Host": "localhost",
"Accept-Encoding": "gzip, deflate, br",
"Connection": "keep-alive",
"Content-Length": "137"
}
lighthouse
)
Advice: Add rel="noopener"
or rel="noreferrer"
to any external links to improve performance and prevent security vulnerabilities<a class="a_" rel="noreferrer" href="http://orthodoxy.ge" target="_blank" title="მართლმადიდებლური საიტი orthodoxy.ge">orthodoxy.ge</a>
Links that the noreferrer
was used:
orthodoxy.ge
teodore.ge
qadageba.ge