head followed by variable??

I know that the common use of head is for example head -3 etc.Is there any possibility that,if i have a variable that equals to an integer(i=5),i can write head -i??
If not,what syntax or commands should i write down in order to have the same result?

//maybe something lik head -"$variable" ?

Assuming that you variable is named i, and is set, this should work:

head -${i} file

ok "$i" seems fine but i will check this too!thnks a lot!