PHP’s in_array() vs. jQuery’s inArray()
This one stumped me for a bit when i was trying to use jQuery to populate checkboxes with a list of items pulled from a database using PHP. The fact of the matter is that PHP’s in_array() returns a boolean whereas jQuery’s inArray() returns the index of the matching element, or if the element is [...]

