View Single Post
Old 2005-04-06, 11:23 PM   #4
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
$type would need to have more than a true/false value.

you could do something like

Code:
switch ($type) {
  case 0: 
     $sentence = "$word1[0] $word2[0] $word3[0] $word4[0]";
     break;
  case 1: 
    $sentence = "$word1[0] $word2[0] $word3[0] $word4[0] $word5[0]";
    break;
  case 2:
    asdfhaskdhflasjdhflashdf
    break;
  default:
     asdjhflasjhdfljashdflkjhasdf
     break;
}
Then you just have to set $type to something other than 0/1 or false/true.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote