# functions.php

PHPSandbox utility functions

Package
  \PHPSandbox

## Tags

None found

## Functions

### wrap()

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

Wrap output value in SandboxString

#### Parameters

mixed | $value | Value to wrap
\PHPSandbox\PHPSandbox | $sandbox | Sandbox instance of calling code

#### Returns

mixed|\PHPSandbox\SandboxedString —

Returns the wrapped value

#

File
  functions.php

## Tags

package | PHPSandbox

### wrapByRef()

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

Wrap output value in SandboxString by reference

#### Parameters

mixed | $value | Value to wrap
\PHPSandbox\PHPSandbox | $sandbox | Sandbox instance of calling code

#### Returns

mixed|\PHPSandbox\SandboxedString —

Returns the wrapped value

#

File
  functions.php

## Tags

package | PHPSandbox

###