Hello peeps.
I'm trying to figure out how to replace +44 with a 0, but only IF the number is written like this.
Here are some examples of how people MIGHT enter their mobile number in their profile.
07899999999 [ how it should be ]
+44789999999 [ it's OK, but things don't work with +44 ]
07899 999 999 [ has 2 spaces ]
07899999 999 [has 1 space ]
What ever way they enter it, when I query the database and put the number in to a $mobile_number I want it to read like the very first example. [0789999999]
Is there an easy way to do this?