Hello,
I am very new to PHP. I am working on a project (just an exercise) and I am stump on one of the exercise:
[b]Create a self-submitting form page that accepts the user’s first and last name in 2 text
boxes.
- On submission, your script should replace all instances of the letter “s” with the
number “5”, determines the location of the first “e” (if one exists), and evaluates
whether the last 3 characters of the last name are “son”. - The modified text should be displayed on the page after submission with the first
“e” underlined and the last 3 characters in italics ONLY if they are “son”.[/b]
I am able to figure out the first part with replacing “s” with “5” (I’m very proud of myself for that) but the other parts is what i am stuck on. to find the first “e”, i assume I would use a If Then statement and a Left Function, but from there, I don’t know how I get it to “echo” an underline “e”. same goes for the last part of the exercise. I assume i would use a Right Function.
Any help would be greatly appreciated.
Thank you,
Malikye