Guest User

Untitled

a guest
Jul 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. I have an ARRAY containing some ITEMS. The amount may DIFFER.
  3.  
  4. ["foo","bar","THE","brown","fox",REAL","lazy","dog"]
  5.  
  6. The only items I want from this array is "THE" and "REAL"
  7.  
  8. Basically the array always starts with two useless items, and then starts listing real items. After every
  9. real item there is two more useless items. The thing is that I only want to collect the real items just by
  10. doing some math, not depending on the items value.
  11.  
  12. Does someone know a nice way doing this? Or can give me a hint :)
Add Comment
Please, Sign In to add comment