title: Generate 10 digit number from a string
body: <p>Hi i have string like below</p>
  
  <pre><code>$string = "hello this is big test string"
  </code></pre>
  
  <p>or </p>
  
  <pre><code>$string = "hello small";
  </code></pre>
  
  <p>I need to generate unique 10 numbers from above strings.It don't have to be reversible , but the same unique 10 number should be generated always.</p>
  
  <p>What i tried :</p>
  
  <pre><code>function toNumber($dest)
      {
          if ($dest)
              return ord(strtolower($dest)) - 96;
          else
              return 0;
      }
  
  
  $str = "hello this is string";
  $chars = str_split($str);
  foreach($chars as $char){
  echo toNumber($char) . " ";
  }
  </code></pre>
  
  <p>P.s</p>
  
  <ol>
  <li>for smaller string less than 10 char also should generate 10 random number</li>
  <li>I have huge database of strings , so number should not be dependent on 1st or last 10 char..it should be mixture of all words and unique as possible.</li>
  </ol>
  
  <p>Thanks all.</p>