<?php $data = array('@Needle Value@' => '<a href=“#some-key”>$0</a>'); $string = 'I am the Needle Value'; echo preg_replace(array_keys($data), $data, $string);
You have javascript disabled. You will not be able to edit any code.