Answer the question
In order to leave comments, you need to log in
How to create another array from a similar array?
have an array
print_r ($matches[0]);
Array
(
[0] => <li>a</li>
[1] => <li>b</li>
[2] => <li>c</li>
)
$trans = array("<h2>a</h2>" => "<h2 id="0">a</h2>",
"<h2>b</h2>" => "<h2 id="1">b</h2>",
"<h2>c</h2>" => "<h2 id="2">c</h2>");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question