title: How to remove all numbers from string?
body: <p>I'd like to remove all numbers from a string [0-9]. I wrote this code that is working:</p>
  
  <pre><code>$words = preg_replace('/0/', '', $words ); // remove numbers
  $words = preg_replace('/1/', '', $words ); // remove numbers
  $words = preg_replace('/2/', '', $words ); // remove numbers
  $words = preg_replace('/3/', '', $words ); // remove numbers
  $words = preg_replace('/4/', '', $words ); // remove numbers
  $words = preg_replace('/5/', '', $words ); // remove numbers
  $words = preg_replace('/6/', '', $words ); // remove numbers
  $words = preg_replace('/7/', '', $words ); // remove numbers
  $words = preg_replace('/8/', '', $words ); // remove numbers
  $words = preg_replace('/9/', '', $words ); // remove numbers
  </code></pre>
  
  <p>I'd like to find a more elegant solution: 1 line code (IMO write nice code is important). </p>
  
  <p>The other code I found in stackoverflow also remove the Diacritics (á,ñ,ž...).</p>