Menu

## functions.php

PHPSandbox utility functions

### Table of Contents

wrap() : mixed|SandboxedString
  Wrap output value in SandboxString
wrapByRef() : mixed|SandboxedString
  Wrap output value in SandboxString by reference

### Functions

#### wrap()

functions.php : 14

Wrap output value in SandboxString

`wrap(mixed $value, PHPSandbox $sandbox) : mixed|SandboxedString`

##### Parameters

$value : mixed

  Value to wrap

$sandbox : PHPSandbox

  Sandbox instance of calling code

##### Return values

mixed|SandboxedString —

Returns the wrapped value

#### wrapByRef()

functions.php : 44

Wrap output value in SandboxString by reference

`wrapByRef(mixed &$value, PHPSandbox $sandbox) : mixed|SandboxedString`

##### Parameters

$value : mixed

  Value to wrap

$sandbox : PHPSandbox

  Sandbox instance of calling code

##### Return values

mixed|SandboxedString —

Returns the wrapped value

## Search results