Kaylyn's code output for Strings:
Strings Revisited
The string is: -- Sometimes good people do bad things. --note: there are spaces at the start and end of the stringHow many characters? 38
Character (ASCII[101]) --e-- POSITION: 4
Character (ASCII[116]) --t-- POSITION: 5
Character (ASCII[105]) --i-- POSITION: 6
Character (ASCII[109]) --m-- POSITION: 7
Character (ASCII[101]) --e-- POSITION: 8
Character (ASCII[115]) --s-- POSITION: 9
Character (ASCII[32]) -- -- POSITION: 10
Character (ASCII[103]) --g-- POSITION: 11
Character (ASCII[111]) --o-- POSITION: 12
Character (ASCII[111]) --o-- POSITION: 13
Character (ASCII[100]) --d-- POSITION: 14
Character (ASCII[32]) -- -- POSITION: 15
Character (ASCII[112]) --p-- POSITION: 16
Character (ASCII[101]) --e-- POSITION: 17
Character (ASCII[111]) --o-- POSITION: 18
Character (ASCII[112]) --p-- POSITION: 19
Character (ASCII[108]) --l-- POSITION: 20
Character (ASCII[101]) --e-- POSITION: 21
Character (ASCII[32]) -- -- POSITION: 22
Character (ASCII[100]) --d-- POSITION: 23
Character (ASCII[111]) --o-- POSITION: 24
Character (ASCII[32]) -- -- POSITION: 25
Character (ASCII[98]) --b-- POSITION: 26
Character (ASCII[97]) --a-- POSITION: 27
Character (ASCII[100]) --d-- POSITION: 28
Character (ASCII[32]) -- -- POSITION: 29
Character (ASCII[116]) --t-- POSITION: 30
Character (ASCII[104]) --h-- POSITION: 31
Character (ASCII[105]) --i-- POSITION: 32
Character (ASCII[110]) --n-- POSITION: 33
Character (ASCII[103]) --g-- POSITION: 34
Character (ASCII[115]) --s-- POSITION: 35
Character (ASCII[46]) --.-- POSITION: 36
Character (ASCII[32]) -- -- POSITION: 37
The first 's' is in position: 1
The first 'd' is in position: 14
Place the string Sometimes good people do bad things. into the second index of an array
The string located at the second index of the array is: Sometimes good people do bad things.
The fifth character of the Sometimes good people do bad things. string at the second index of the array is: t
Sometimes good people do bad things. Sometimes good people do bad things. Sometimes good people do bad things.
--- Sometimes good people do bad things. ---
---Sometimes good people do bad things.---
encrypt of Sometimes good people do bad things. is: xxwSjyfcd9QtE
md5 for Sometimes good people do bad things. : eb52fe20da491f88849f9bbf5394d657
Explode the string Sometimes good people do bad things. into an arrayImplode the array back into a string: Sometimes good people do bad things.
Array ( [0] => [1] => Sometimes [2] => good [3] => people [4] => do [5] => bad [6] => things. [7] => )