Search notes:

PowerShell: comma operator

Binary comma operator

The binary comma operator is used to create arrays:
$ary = $elem_one, $elem_two, $elem_three

Unary comma operator

There is also a unary comma operator which creates an array with one element only. Note that the comma needs to be placed before the element:
$ary = ,42
The unary comma operator might be used, for example, in functions to return arrays (such as byte arrays).

See also

operators

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/...', 1758199477, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/operator/comma(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78