I am trying to do string replace on an array.
I have..
str_replace('texts', 'testssssss', $test->html);
The $test->html
returns
and I want to replace all texts to testssssss..
key 1
<div>
<a href='texts.company.name.html'>test</a>
</div>
Key 2
<div>
other html...
</div>
Key 3
<div>
other html...
</div>
Key 4
<div>
<a href='texts.department.name.html'>department</a>
</div>
more...
Thanks for the help!