Created
April 4, 2017 23:52
-
-
Save miah/ffb3f5e79951de4e3de0592991ce8347 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var words:String = "foo bar"; | |
| var PH_oldArray:Array = words.split(" "); | |
| var PH_newArray:Array = []; | |
| var param1:String = ""; | |
| for each(var word:String in PH_oldArray) | |
| { | |
| PH_newArray.push(word.charAt(0).toUpperCase() + word.slice(1)); | |
| } | |
| param1 = PH_newArray.join(" "); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment