Function __global->pack

Definitions

sources_custom/phpstub.php

  • Pack data into binary string.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$format string No No required parameter N/A N/A The formatting string
...$args mixed No Yes required parameter N/A N/A ...$args Argument that binds to the formatting string

Returns

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

Preview

Code (PHP)

/**
 * Pack data into binary string.
 *
 * @param  string $format The formatting string
 * @param  mixed $args ...$args Argument that binds to the formatting string
 * @return string The binary string
 */

function pack(string $format, ...$args) : string