Function __global->otp

Definitions

sources/tempcode.php

  • Get a string (natural for Tempcode's stream-based processing-model) representation of a bound Tempcode construct.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$var mixed No No required parameter N/A N/A Construct (or null if not set)
$origin ID_TEXT No No Blank (empty string) N/A N/A Where this parameter is referenced, in a compressed reference form

Returns

  • Value
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a string (natural for Tempcode's stream-based processing-model) representation of a bound Tempcode construct.
 *
 * @param  mixed $var Construct (or null if not set)
 * @param  ID_TEXT $origin Where this parameter is referenced, in a compressed reference form
 * @return string Value
 */

function otp($var, string $origin = '') : string