M
M
Michael2017-08-29 21:37:29
PHP
Michael, 2017-08-29 21:37:29

How to do a replacement with an array using regular expressions?

The response to the API request is a string with parameters. Sometimes % are without numbers.
Carrier with such method not found: %1, %2
Array ( [0] => ups [1] => GND )
How to do a replacement using preg_replace, is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-08-29
@springimport

How to replace a string with data from an array?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question