I wanted to search a string. For example,
$string = "hello how are you today?";
How can I make a script so that it searchs that and finds how many times it finds the letter e? For example, in the example i gave the output should be 2.
Also, in a given set of numbers...
$hello = 3
$hello2 = 5
$hello3 = 2
How can a script find the varible with the highest value? and if it has a tie between two numbers it picks the first one?
$string = "hello how are you today?";
How can I make a script so that it searchs that and finds how many times it finds the letter e? For example, in the example i gave the output should be 2.
Also, in a given set of numbers...
$hello = 3
$hello2 = 5
$hello3 = 2
How can a script find the varible with the highest value? and if it has a tie between two numbers it picks the first one?







