fwrite
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Binary-safe file write
Alias
fputs
fwrite
(
resource $stream
,
string $data
, ?
int $length
=
null
):
int
|
false
public function
write
(
$contents
)
{
fwrite
(
$this
->
handle
,
$contents
);
fflush
(
$this
->
handle
);
src/Illuminate/Filesystem/LockableFile.php
return;
}
fwrite
(
$sink
,
$body
);
rewind
(
$sink
);
};
}
src/Illuminate/Http/Client/PendingRequest.php
{
$tmpfile
=
tmpfile
();
fwrite
(
$tmpfile
,
$content
);
return
tap
(new
File
(
$name
,
$tmpfile
), function (
$file
) use (
$tmpfile
) {
$file
->
sizeToReport
=
fstat
(
$tmpfile
)[
'size'
];
src/Illuminate/Http/Testing/FileFactory.php
call_user_func
(
"image
{
$extension
}
"
,
$image
);
fwrite
(
$temp
,
ob_get_clean
());
});
}
}
src/Illuminate/Http/Testing/FileFactory.php