Jump to content

replace string {$string}


Destramic

Recommended Posts

hey guys just a simple one...im trying to replace {$name}  but i dont think ive got the right prefix in the str_replace function...if anyone could tell me where i am going wrong please

 

$content = str_replace("{/$".$variable."}", $value, $content);

{$name}

Link to comment
https://forums.phpfreaks.com/topic/220291-replace-string-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.