Menu

## PHPSandbox

### Interfaces, Classes and Traits

Error
  Error class for PHP Sandboxes.
PHPSandbox
  PHPSandbox class for PHP Sandboxes.
SandboxedString
  Sandboxed string class for PHP Sandboxes.
SandboxWhitelistVisitor
  SandboxWhitelister class for PHP Sandboxes.
ValidatorVisitor
  Validator class for PHP Sandboxes.
WhitelistVisitor
  Whitelister class for PHP Sandboxes.

### 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