Function __global->copy

Definitions

sources_custom/phpstub.php

  • {{creates-file}}}}
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool
  • Flags:

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$source PATH No No required parameter N/A N/A The source path
$dest PATH No No required parameter N/A N/A The destination path
$context ?resource No No Null N/A N/A A stream context to attach to (null: no special context)

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * {{creates-file}}}}
 *
 * @param  PATH $source The source path
 * @param  PATH $dest The destination path
 * @param  ?resource $context A stream context to attach to (null: no special context)
 * @return boolean Success status
 */

function copy(string $source, string $dest, $context = null) : bool