In array (opus)

From Edgar BV Wiki
Revision as of 10:13, 26 April 2007 by 192.168.0.21 (talk) (New page: function in_array(string, array) { if( !string || !array) { logError('in_array() >> Not enough arguments supplied'); return false; } var arrLength = array.length var i = 0 while( ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


function in_array(string, array) { if( !string || !array) { logError('in_array() >> Not enough arguments supplied'); return false; } var arrLength = array.length var i = 0 while( i < arrLength ) { if(array[i]==string) return true; i++; } return false; }