| @@ 759-773 (lines=15) @@ | ||
| 756 | ||
| 757 | // Find the last vowel in the word |
|
| 758 | $lastLetter[1] = null; |
|
| 759 | foreach ( $wordReversed as $xvalue ) { |
|
| 760 | foreach ( $allVowels as $yvalue ) { |
|
| 761 | if ( strcmp( $xvalue, $yvalue ) == 0 ) { |
|
| 762 | $lastLetter[1] = $xvalue; |
|
| 763 | break; |
|
| 764 | } else { |
|
| 765 | continue; |
|
| 766 | } |
|
| 767 | } |
|
| 768 | if ( $lastLetter[1] !== null ) { |
|
| 769 | break; |
|
| 770 | } else { |
|
| 771 | continue; |
|
| 772 | } |
|
| 773 | } |
|
| 774 | ||
| 775 | return $lastLetter; |
|
| 776 | } |
|
| @@ 70-85 (lines=16) @@ | ||
| 67 | ||
| 68 | // Find the last vowel in the word |
|
| 69 | $wordLastVowel = null; |
|
| 70 | foreach ( $wordReversed as $xvalue ) { |
|
| 71 | foreach ( $allVowels as $yvalue ) { |
|
| 72 | if ( strcmp( $xvalue, $yvalue ) == 0 ) { |
|
| 73 | $wordLastVowel = $xvalue; |
|
| 74 | break; |
|
| 75 | } else { |
|
| 76 | continue; |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||
| 80 | if ( $wordLastVowel !== null ) { |
|
| 81 | break; |
|
| 82 | } else { |
|
| 83 | continue; |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| 87 | // Now convert the word |
|
| 88 | switch ( $case ) { |
|