Search notes:

PowerShell: subexpression operator

The subexpression operator ($(…)) is primarily used in strings. It evaluates the expression within its parentheses and «merges» the result into the string.
$dt = get-date

write-host "Today is day $($dt.dayOfYear) in the year."
Github repository about-PowerShell, path: /language/operator/subexpression/dayOfYear.ps1

See also

The subexpression operator is only recognized in argument parsing mode
operator

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758207333, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/operator/subexpression/index(46): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78