Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having trouble with arrays.
#7
(10-08-2010, 04:35 AM)Orgy Wrote: Nothing better than sending code to someone that makes them say, "What the fudge? Why is he doing this?"

Every once in a while I will run across a code review request at work (all major commits need code reviews) that makes me say something along the same line. Oddly enough the person who made the commit is almost always an intern.

Another alternative to the array_rand () method, if you're using the entire array and don't need to pull out random indices, is the shuffle () method. It does as its name suggestions: randomizes the order of the array elements.
Ho, ho, ho! Well, if it isn't fat stinking billy goat Billy Boy in poison!
How art thou, thou globby bottle of cheap, stinking chip oil?
Come and get one in the yarbles, if ya have any yarbles, you eunuch jelly thou!
Reply


Messages In This Thread
RE: Having trouble with arrays. - by Omniscient - 09-17-2010, 01:17 AM
RE: Having trouble with arrays. - by Orgy - 10-06-2010, 01:51 PM
RE: Having trouble with arrays. - by ariton - 10-08-2010, 03:51 AM
RE: Having trouble with arrays. - by Orgy - 10-08-2010, 04:35 AM
RE: Having trouble with arrays. - by Disease - 10-08-2010, 04:46 AM
RE: Having trouble with arrays. - by Orgy - 10-08-2010, 06:13 AM
RE: Having trouble with arrays. - by Zankza - 10-08-2010, 03:27 AM
RE: Having trouble with arrays. - by Chimi - 12-06-2010, 01:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  apache trouble Socrates 9 1,779 11-09-2009, 08:15 PM
Last Post: Socrates

Forum Jump:


Users browsing this thread: 2 Guest(s)