mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Removing an example and part of a heredoc note (fixes bug #19180)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@96060 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8b02166179
commit
5cda076cb4
1 changed files with 1 additions and 27 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.87 $ -->
|
||||
<!-- $Revision: 1.88 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -703,23 +703,6 @@ echo 'I am trying to include at this point: \n a newline';
|
|||
<emphasis>may not be indented</emphasis>, and there
|
||||
may not be any spaces or tabs after or before the semicolon.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Probably the nastiest gotcha is that there may also
|
||||
not be a carriage return (<literal>\r</literal>) at the end of
|
||||
the line, only
|
||||
a form feed, AKA newline (<literal>\n</literal>).
|
||||
Since Microsoft Windows uses the sequence
|
||||
<literal>\r\n</literal> as a line
|
||||
terminator, your heredoc may not work if you write your
|
||||
script in a Windows editor. However, most programming
|
||||
editors provide a way to save your files with a UNIX
|
||||
line terminator.
|
||||
<!--
|
||||
FTP will sometimes automatically convert \r\n to \n while
|
||||
transferring your files to your webserver (which
|
||||
is *nix, of course)
|
||||
-->
|
||||
</simpara>
|
||||
</warning>
|
||||
|
||||
<para>
|
||||
|
@ -1917,17 +1900,8 @@ examples:
|
|||
<para>
|
||||
The behaviour of an automatic conversion to array is currently
|
||||
undefined.
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$a = 1; // $a is an integer
|
||||
$a[0] = "f"; // $a becomes an array, with $a[0] holding "f"
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
<para>
|
||||
While the above example may seem like it should clearly result in
|
||||
$a becoming an array, the first element of which is 'f', consider
|
||||
this:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$a = "1"; // $a is a string
|
||||
|
|
Loading…
Reference in a new issue