Here are the strings: $School = "Absolute university", $Address
= "152 main street, Todi, NJ", $Room = "kh413, Todi campus". Create
a PHP program to:
- print out the length of each string
- print out the number of words in each string
- replace "NJ" with "new jersey"
- convert lowercase into Title case for each string
- print out the concatenation of all three strings
SHOW CODE AND OUTPUT
Here are the strings: $School = "Absolute university", $Address = "152 main street, Todi, NJ", $Room = "kh413, Todi camp
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am