Created
April 4, 2017 23:31
-
-
Save miah/589d7e1e003c66bea09981958ffb5842 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 PH_oldstr:String = "foo bar"; | |
| var PH_oldArray:Array = "foo bar".split(" "); | |
| var PH_newArray:Array = []; | |
| for each(var word 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