How can I cycle through hex color codes in PHP?

前端 未结 9 2144
野的像风
野的像风 2021-01-06 06:08

I want an array where each field in the array contains a color code

array(0 => \'#4CFF00\', 1 => \'#FFE97F\')

And I want this to go t

9条回答
  •  借酒劲吻你
    2021-01-06 06:28

    I guess if you need all of those colors you could build the 16776960 element array as follows:

    
    

    It seems a bit odd though...

提交回复
热议问题