PHP Hw1

1) Input: Your best teacher is your last mistake.
Output: Your Best Teacher Is Your Last Mistake.

2) The total of 31 12 34 25 10 30 is 142

3a) Words sorted alphabetically with occurrences:
() : 28
( ) : 4
(America) : 1
(Blessings) : 1
(Constitution) : 1
(Justice) : 1
(Liberty) : 1
(Order) : 1
(People) : 1
(Posterity) : 1
(States) : 2
(Tranquility) : 1
(Union) : 1
(United) : 2
(We) : 1
(Welfare) : 1
(a) : 1
(and) : 3
(common) : 1
(defense) : 1
(do) : 1
(domestic) : 1
(establish) : 2
(for) : 2
(form) : 1
(general) : 1
(in) : 1
(insure) : 1
(more) : 1
(of) : 3
(ordain) : 1
(our) : 1
(ourselves) : 1
(perfect) : 1
(promote) : 1
(provide) : 1
(secure) : 1
(the) : 6
(this) : 1
(to) : 2

3b) Words sorted by occurrence:
(America) : 1
(Blessings) : 1
(Constitution) : 1
(Justice) : 1
(Liberty) : 1
(Order) : 1
(People) : 1
(Posterity) : 1
(Tranquility) : 1
(Union) : 1
(We) : 1
(Welfare) : 1
(a) : 1
(common) : 1
(defense) : 1
(do) : 1
(domestic) : 1
(form) : 1
(general) : 1
(in) : 1
(insure) : 1
(more) : 1
(ordain) : 1
(our) : 1
(ourselves) : 1
(perfect) : 1
(promote) : 1
(provide) : 1
(secure) : 1
(this) : 1
(States) : 2
(United) : 2
(establish) : 2
(for) : 2
(to) : 2
(and) : 3
(of) : 3
( ) : 4
(the) : 6
() : 28