original_string: public function assign($var, $value = null)
      {
          if (is_string($var)) {
              $this->$var = $value;
          } elseif (is_array($var)) {
              foreach ($var as $key => $value) {
                  $this->$key = $value;
              }
          }
      }
code: public function assign($var, $value = null)
      {
          if (is_string($var)) {
              $this->$var = $value;
          } elseif (is_array($var)) {
              foreach ($var as $key => $value) {
                  $this->$key = $value;
              }
          }
      }
code_tokens: public function assign ( $ var , $ value = null ) { if ( is_string ( $ var ) ) { $ this -> $ var = $ value ; } elseif ( is_array ( $ var ) ) { foreach ( $ var as $ key => $ value ) { $ this -> $ key = $ value ; } } }
docstring: Assign value to a variable for use in a template
  @param string|array $var
  @param mixed $value
  @ignore
docstring_tokens: Assign value to a variable for use in a template