How to get Array Position State with digitalRead ?

Here is such a tutorial :
https://learn.sparkfun.com/tutorials/pull-up-resistors/what-is-a-pull-up-resistor