Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Loop through the meta fields looking for things to replace
- * @param array $replace
- */
- protected function _metaReplacements(array $replace)
- {
- $doReplace = function(&$item, $key) use ($replace) {
- foreach($replace AS $needle => $replace) {
- $item = preg_replace('/'. $needle .'/', $replace, $item);
- }
- };
- array_walk_recursive($this->_restResponse['head'], $doReplace);
- }
Add Comment
Please, Sign In to add comment