View Single Post
Old 05-25-2003, 05:02 PM   #1
Shinji
New Member
 
Join Date: Jul 2002
Location: Okinawa, Japan
Posts: 7
Shinji is on a distinguished road
Send a message via AIM to Shinji
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? @_@;;
Shinji is offline   Reply With Quote