Function __global->serialize

Definitions

sources_custom/phpstub.php

  • Generates a storable representation of a value.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$value mixed No No required parameter N/A N/A Whatever is to be serialised

Returns

  • The serialisation
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Generates a storable representation of a value.
 *
 * @param  mixed $value Whatever is to be serialised
 * @return string The serialisation
 */

function serialize($value) : string