Function

file_get_contents

Synopsis

file_get_contents(string, mixed ...): mixed

Area
Runtime\PS\Files\file_get_contentsareas

Description

file_get_contents returns the contents of $filename as a string, or false on failure; php://input is the raw request body (stdin under the cli SAPI), and it looks for a relative path in the source filesystem first, then on the host.

Usage

$value = file_get_contents($arguments);
$fn = file_get_contents(...);

See also