Question about a function

P.S. here's some more code with the "display function:

PORTD = PORTD & 0x00
PORTD = display[x];