You are here

function Smarty_Compiler::_quote_replace in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/lib/smarty/Smarty_Compiler.class.php \Smarty_Compiler::_quote_replace()

Quote subpattern references

Parameters

string $string:

Return value

string

1 call to Smarty_Compiler::_quote_replace()
Smarty_Compiler::_compile_file in includes/moodle/lib/smarty/Smarty_Compiler.class.php
compile a resource

File

includes/moodle/lib/smarty/Smarty_Compiler.class.php, line 2179

Class

Smarty_Compiler
Template compiling class @package Smarty

Code

function _quote_replace($string) {
  return strtr($string, array(
    '\\' => '\\\\',
    '$' => '\\$',
  ));
}