In this code as for example:
$hello=['aaaa','bbbb','cccc'];
$by=['1111','2222','3333'];
$data = "1111 aaaa cccc";
I want to replace $by with $hello with this custom replacement data for example:
str_replace( $hello , "<b>". $by . "</b>" , $data);
But I get array to string error. How can I use this custom replace method?