mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
typo...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@141203 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
449537adbe
commit
c152ca4e5f
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.124 $ -->
|
||||
<!-- $Revision: 1.125 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -1002,7 +1002,7 @@ echo "This square is {$square->width}00 centimeters broad.";
|
|||
echo "This works: {$arr[4][3]}";
|
||||
|
||||
// This is wrong for the same reason as $foo[bar] is wrong
|
||||
// outside a string. In otherwords, it will still work but
|
||||
// outside a string. In other words, it will still work but
|
||||
// because PHP first looks for a constant named foo, it will
|
||||
// throw an error of level E_NOTICE (undefined constant).
|
||||
echo "This is wrong: {$arr[foo][3]}";
|
||||
|
@ -1929,6 +1929,7 @@ Array
|
|||
[3] => 'March'
|
||||
)
|
||||
*/
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -1937,6 +1938,7 @@ Array
|
|||
<title>Filling an array</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// fill an array with all items from a directory
|
||||
$handle = opendir('.');
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
|
|
Loading…
Reference in a new issue