Home php Remove characters from php string

Remove characters from php string




Hello everyone, there is a line of this format


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

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