You are here

function cmfcCalendarV1Iranian::replaceVariables in Calendar Systems 6

Same name and namespace in other branches
  1. 5 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::replaceVariables()
  2. 6.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::replaceVariables()
  3. 7.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::replaceVariables()

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

File

calendar/v1/calendarSystems/iranian.class.inc.php, line 774

Class

cmfcCalendarV1Iranian

Code

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