All function parameters or arguments can be accessed via $1, $2, $3,..., $N. $0 always point to the shell ...
bash.cyberciti.biz