Home php Remove characters from php string

Remove characters from php string

Author

Date

Category

Hello everyone, there is a line of this format

+77771112233

How to remove +7 in Php environment, what would happen
7771112233


Answer 1

Here’s another option

$str = str_replace('+7', '', '+77771112233');

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions