is_optional
column comment which exists in decorations
table using information_schema
databaseSELECT COLUMN_COMMENT
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = 'geiger'
AND TABLE_NAME = 'decorations'
AND COLUMN_NAME = 'is_optional'
$
followed by curly brackets ${expression}
let name = 'George'
let age = 25
document.write(`My name is ${name} and I am ${age} years old!`)
$arr = ['key0' => 'val0','key1' => 'val1', 'key2' => 'val2', 'key3' => 'val3'];
$removeKeys = ['key1', 'key2', 'key3'];
$arr = array_diff_key($arr, array_flip($removeKeys));
source_dir
to destination_dir
cp -r /home/user/source_dir/. /var/www/html/destination_dir/
-r
- copies recursively (with subfolders and files)
.
- copies all files and folders inside the folder$opts = [
"http" => [
"method" => "GET",
"header" =>
"Channel-Name: ".CHANNEL."\r\n" .
"Authorization: ".AUTHORIZATION."\r\n"
]
];
// Then we create a stream
$context = stream_context_create($opts);
Then we pass the $content
to file_get_contents()
function as the third
parameter$result = file_get_contents($url, false, $context);