Published in: JavaScript
PHP in_array() function in JavaScript
function in_array( what, where ){ var a=false; for(var i=0;i<where.length;i++){ if(what == where[i]){ a=true; break; } } return a; }
Comments
Subscribe to comments
You need to login to post a comment.

Thank you very much i have been looking for this code for an hour good works
These codes are looking for the suitable extension of an uploading file
function in_array( what, where ){ var a=false; for(var i=0;i