/ Published in: JavaScript
like PHP function in_array
Expand |
Embed | Plain Text
function in_array(item,arr) { for (p=0;p<arr.length;p++) if (item == arr[p]) return true; return false; }
You need to login to post a comment.
like PHP function in_array
function in_array(item,arr) { for (p=0;p<arr.length;p++) if (item == arr[p]) return true; return false; }
You need to login to post a comment.