|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-03-29 05:54 UTC] stas@php.net
[2001-04-28 15:42 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
I also encountered this problem. I called ereg_replace from function such as this: function replace_var($var, $replacement, $v) { return ereg_replace("\{$var\}", htmlspecialchars($replacement), $v); } Call to this function was $form = replace_var("MODEL", $model, $form); $form is piece of HTML, and MODEL is template variable defined in HTML code like {MODEL} $var is passed to my replace_var function as is.