mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Default encoding can also be changed with stream_default_encoding
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241525 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cfe7982cba
commit
2ac5efcd57
1 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.19 $ -->
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.file-put-contents">
|
||||
<refnamediv>
|
||||
<refname>file_put_contents</refname>
|
||||
|
@ -111,12 +111,12 @@
|
|||
</entry>
|
||||
<entry>
|
||||
<parameter>data</parameter> is written in text mode. If unicode
|
||||
semantics are enabled, the default encoding is UTF-8.
|
||||
You can specify a different encoding by creating a custom context.
|
||||
This flag cannot be used with <constant>FILE_BINARY</constant>.
|
||||
If <parameter>data</parameter> is UTF-8 and the
|
||||
<constant>FILE_TEXT</constant> flag is not set, a warning will be
|
||||
issued. This flag is only available since PHP 6.
|
||||
semantics are enabled, the default encoding is UTF-8.
|
||||
You can specify a different encoding by creating a custom context
|
||||
or by using the <function>stream_default_encoding</function> to
|
||||
change the dafault. This flag cannot be used with
|
||||
<constant>FILE_BINARY</constant>. This flag is only available since
|
||||
PHP 6.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
|
Loading…
Reference in a new issue