title: What does Application.WorksheetFunction.Find do?
body: <p>Trying to convert a vbscript to php.</p>
  
  <p>Have this line in the script:</p>
  
  <pre><code>digit = Application.WorksheetFunction.Find(aChar, PERMITTED)
  </code></pre>
  
  <p>Where aChar is a character and PERMITTED is a string.</p>
  
  <p>It looks like some sort of validation, but not 100% sure.</p>
  
  <p>What value will digit be? What happends if aChar is not in PERMITTED?</p>
  
  <p>The <a href="http://msdn.microsoft.com/en-us/library/office/ff198169(v=office.14).aspx" rel="nofollow">documentation</a> isn't very clear.</p>