How to define arrays in shaders?

I’m new to using shaders, and i can’t figure out how to define an array in shaders. I just want to define an array of floats or halfs. I managed to DECLARE one, but that’s as far as i got. I could barely find any information on Google.

Any help would be appreciated.

What is the reason you need an array?

Also, shaders don’t support your standard c# style array. I find its best to create the array in c# and create a buffer to send the information one after an other. However if its single point values you could store up-to four of them in a float4