Question: A string in PHP is stored as an array of characters. $var = PROGRAMMING; echo $var[0] . $var[4]; The code above would display PR. Suppose
A string in PHP is stored as an array of characters.
$var = "PROGRAMMING"; echo $var[0] . $var[4];
The code above would display PR.
Suppose each letter of the alphabet is worth a percent value from 1% to 26%. Write a program that displays the percentage value of any word entered.
Sample run:
Enter a word : KNOWLEDGE
KNOWLEDGE is worth 96%
Please give code without html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
