Function __global->file_exists

Definitions

sources_custom/phpstub.php

  • Checks whether a file or directory exists.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$filename PATH No No required parameter N/A N/A The path

Returns

  • Whether it exists
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Checks whether a file or directory exists.
 *
 * @param  PATH $filename The path
 * @return boolean Whether it exists
 */

function file_exists(string $filename) : bool