1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 07:42:10 +01:00
Sometimes the spelling used is "writeable", sometimes it's "writable". Both are valid in English, but the SplFileInfo method is "isWritable".
This commit is contained in:
MorganLOCode
2026-02-06 15:56:00 +13:00
committed by GitHub
parent f6406cdb5e
commit b07b628d6f

View File

@@ -33,13 +33,13 @@
&reftitle.examples;
<para>
<example>
<title><methodname>SplFileInfo::isWriteable</methodname> example</title>
<title><methodname>SplFileInfo::isWritable</methodname> example</title>
<programlisting role="php">
<![CDATA[
<?php
$info = new SplFileInfo('locked.jpg');
if (!$info->isWriteable()) {
echo $info->getFilename() . ' is not writeable';
if (!$info->isWritable()) {
echo $info->getFilename() . ' is not writable';
}
?>
]]>
@@ -47,7 +47,7 @@ if (!$info->isWriteable()) {
&example.outputs.similar;
<screen>
<![CDATA[
locked.jpg is not writeable
locked.jpg is not writable
]]>
</screen>
</example>