I know this is going to sound like a silly notion, but i'd love to see just how it could work.
Anyone have a clue as to how a function could be written which when a string was passed to it, it would manipulate the string by capitalizing alternating letters/characters and returning the originally sent string now with alternating caps?
e.g. alt_caps("shinji is vapid") ShInJi Is VaPiD
Silly I know, but amusing and definitely of curiosity to how it might work. I'm sure if you could loop through each character in the string and apply capitalize() to every other character it would work... but how? @_@;;
|