You are here

function cmfcCalendarV1::replaceVariables in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::replaceVariables()
  2. 7 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::replaceVariables()
  3. 7.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::replaceVariables()

$replacements['00username00']='jafar gholi';

File

calendar/v1/calendarV1.class.inc.php, line 365

Class

cmfcCalendarV1

Code

function replaceVariables($replacements, $text) {
  foreach ($replacements as $needle => $replacement) {
    $text = str_replace($needle, $replacement, $text);
  }
  return $text;
}