str_replace to image

alchemestrum

New Member
I'm using a module which gets a certain string from an xml document (depending on language settings).I want this string to be replaced with an image instead of text, but I'm not doing it right. Right now it says: "Klarna Faktura (+19) - Betala om 14 dagar"Here's the string\[code\]case 'invoice': return str_replace( '(+XX)', "(+" . $this->currency->format($this->invoiceFee, $this->klarna- >getCurrencyCode(), 1) . ")", $this->klarna->API->fetchFromLanguagePack('INVOICE_TITLE'));\[/code\]I want it to look a little like this:\[code\]case 'invoice': return str_replace( 'Klarna Faktura (+XX) - Betala om 14 dagar', echo '<img src="http://stackoverflow.com/questions/13745068/image/klarnafaktura.jpg"/>', $this->klarna->API->fetchFromLanguagePack('INVOICE_TITLE'));\[/code\]But it's not working. What can I write to make it replace a certain string with an image?
 
Back
Top