title: What is the function that will truncate string in an array?
body: <p>I'm still new to PHP and I couldn't find this in the manual because I'm not sure of the name of the function.  I have an array with These values:</p>
  
  <pre><code>$files[] = 
  
  [0] =&gt; 01_Nhemamusasa.mp3 
  [1] =&gt; 02_Kari_Mudande.mp3 
  [2] =&gt; 03_Chikende.mp3 
  [3] =&gt; 04_Karinge_Zuva.mp3 
  [4] =&gt; 05_Mbirimo.mp3 
  [5] =&gt; 06_Muchenjedza_Mutonga.mp3 
  [6] =&gt; 07_Skokianna.mp3 
  [7] =&gt; 08_Mbavarira.mp3
  </code></pre>
  
  <p>What I need to do is truncate the contents to get rid of the part before the _ and get rid of the filetype.  I'd like to also convert the underscores found in the middle of the Arrays [1] and [5] (in this example) to become spaces.  In other words, I need to convert these file names to be an array of the actual names of the songs.</p>
  
  <p>Thank for any help!</p>
  
  <p>Edit: My host is using PHP 5.2.12</p>