Search notes:

Bash: array variables

declare -a ary

ary+=( one   )
ary+=( two   )
ary+=( three )

echo ${ary[2]}
echo ${ary[1]}
echo ${ary[0]}
# three
# two
# one

echo ---------
echo ${ary[*]}
# one two three

echo ---------
printf "%s\n" "${ary[@]}"
# one
# two
# three

See also

bash - variables

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/Linux/sh...', 1759397901, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/bash/variables/array/index(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78