Posted By

mohamedazher on 03/13/11


Tagged

php arrays


Versions (?)

Array in php


 / Published in: PHP
 

creating arrays in php

  1. $colors = array(
  2. 'black'=>0x08,
  3. 'blue'=>0x0C,
  4. 'brown'=>0x10,
  5. 'cyan'=>0x0F,
  6. 'gray'=>0x17,
  7. 'green'=>0x11,
  8. 'lime'=>0x0B,
  9. 'magenta'=>0x0E,
  10. 'navy'=>0x12,
  11. 'orange'=>0x35,
  12. 'purple'=>0x14,
  13. 'red'=>0x0A,
  14. 'silver'=>0x16,
  15. 'white'=>0x09,
  16. 'yellow'=>0x0D
  17. );

Report this snippet  

You need to login to post a comment.