September 24th, 2013, 08:58 AM
Doubt regarding substitution
I have a flash movie that calls a PHP script to send an email. The problem is that sometimes the variable comes like this: "Email:email@example.com"
How can I check and chop the "Email:" part of the variable? And how do I remove any trailing and ending spaces after?
September 24th, 2013, 09:00 AM
September 24th, 2013, 02:08 PM
Not even close....but I solved the questions.
September 24th, 2013, 02:20 PM
Will you write down the solution? Or is it so brilliant that you must keep it secret?
Originally Posted by jkepler
September 24th, 2013, 03:02 PM
substring and trim would have solved this, as would str_replace, preg_replace, explode, split, and a number of other solutions. Please explain the question better next time and share your solutions with the community. Remember, if everyone kept the solutions to themselves, nobody would get any help at all.
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.