View Single Post
Old 01-09-2008, 04:56 AM  
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Code:
$db = file("filename.txt");
$i = 0;
while (isset($db[$i])) {
  $blah = explode(" ", strtolower(trim($db[$i])));
  $j = 0;
  while (isset($blah[$j])) {
    $t = $blah[$j];
    $t[0] = strtoupper($t[0]);
    $blah[$j] = $t;
    $j++;
  }
  echo implode(" ", $blah) . "\n";
  $i++;
}
It's late, it's messy, but it should work
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote