Rev 2 | Rev 9 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 7 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | for ($i=0; $i<strlen($string); $i++) { |
57 | for ($i=0; $i<strlen($string); $i++) { |
58 | $char = $string[$i]; |
58 | $char = $string[$i]; |
59 | $up = strtoupper($char); |
59 | $up = strtoupper($char); |
60 | $low = strtolower($char); |
60 | $low = strtolower($char); |
61 | if ($up != $low) { |
61 | if ($up != $low) { |
62 | $out .= "[${up}${low}]"; |
62 | $out .= "[$up$low]"; |
63 | } else { |
63 | } else { |
64 | $out .= $char; |
64 | $out .= $char; |
65 | } |
65 | } |
66 | } |
66 | } |
67 | return $out; |
67 | return $out; |