[PHP-DOC] cvs: phpdoc /en/language control-structures.xml
derick Fri Jun 13 07:00:04 2003 EDT Modified files: /phpdoc/en/language control-structures.xml Log: - Added ?php tags, always use para/note/(sim)para Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.77 phpdoc/en/language/control-structures.xml:1.78 --- phpdoc/en/language/control-structures.xml:1.77 Mon Jun 9 15:28:28 2003 +++ phpdoc/en/language/control-structures.xml Fri Jun 13 07:00:03 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.77 $ -- +!-- $Revision: 1.78 $ -- chapter id=control-structures titleControl Structures/title @@ -326,7 +326,7 @@ $i = 0; do { print $i; -} while ($i0); +} while ($i 0); ? ]] /programlisting @@ -360,7 +360,7 @@ } print i is ok; - ...process i... +/* process i */ } while(0); ? @@ -431,7 +431,7 @@ /* example 2 */ -for ($i = 1;;$i++) { +for ($i = 1; ; $i++) { if ($i 10) { break; } @@ -543,12 +543,14 @@ /para /note /para - note -para - literalforeach/literal does not support the ability to - suppress error messages using '@'. -/para - /note + para +note + para + literalforeach/literal does not support the ability to + suppress error messages using '@'. + /para +/note + /para para You may have noticed that the following are functionally identical: @@ -872,8 +874,8 @@ /informalexample /para para -A special case is the default case. This case matches anything -that wasn't matched by the other cases, and should be the last +A special case is the literaldefault/literal case. This case matches +anything that wasn't matched by the other cases, and should be the last literalcase/literal statement. For example: informalexample programlisting role=php @@ -1089,15 +1091,17 @@ simparaFor more information, see link linkend=functions.returning-valuesReturning values/link. /simpara - note -simpara - Note that since functionreturn/function is a language - construct and not a function, the parentheses surrounding its - arguments are emphasisnot/emphasis required--in fact, it is - more common to leave them out than to use them, although it - doesn't matter one way or the other. -/simpara - /note + para +note + simpara + Note that since functionreturn/function is a language + construct and not a function, the parentheses surrounding its + arguments are emphasisnot/emphasis required--in fact, it is + more common to leave them out than to use them, although it + doesn't matter one way or the other. + /simpara +/note + /para /sect1 @@ -1146,18 +1150,21 @@ simpara See the functioninclude/function documentation for more examples. /simpara - note -simpara - Prior to PHP 4.0.2, the following applies: functionrequire/function will - always attempt to read the target file, even if the line it's on never executes. - The conditional statement won't affect functionrequire/function. However, - if the line on which the functionrequire/function occurs is not executed, - neither will any of the code in the target file be executed. Similarly, looping - structures do not affect the behaviour of functionrequire/function. Although - the code contained in the target file is still subject to the loop, the - functionrequire/function itself happens only once. -/simpara - /note + para +note + simpara + Prior to PHP 4.0.2, the following applies: functionrequire/function + will always attempt to read the target file, even if the line it's on + never executes. The conditional statement won't affect + functionrequire/function. However, if the line on which the + functionrequire/function occurs is not executed, neither will any of + the code in the target file be executed. Similarly, looping structures + do not affect the behaviour of functionrequire/function. Although + the code contained in the target file is still subject to the loop, the + functionrequire/function itself happens only once. + /simpara +/note + /para note.language-construct; @@ -1237,7 +1244,7 @@ function foo() { -global $color; +global $color; include 'vars.php'; @@ -1286,9 +1293,9 @@ ![CDATA[ ?php -/* This example assumes that www.example.com is configured to parse .php * - * files and not .txt files. Also, 'Works' here means that the variables * - * $foo and $bar are available within the included file. */ +/* This example assumes that www.example.com is configured to parse .php + * files and not .txt files. Also, 'Works' here means that the variables + * $foo and $bar are available within the included file. */ // Won't work; file.txt wasn't handled by
[PHP-DOC] cvs: phpdoc /en/language basic-syntax.xml
derick Fri Jun 13 07:05:31 2003 EDT Modified files: /phpdoc/en/language basic-syntax.xml Log: - More layout things Index: phpdoc/en/language/basic-syntax.xml diff -u phpdoc/en/language/basic-syntax.xml:1.33 phpdoc/en/language/basic-syntax.xml:1.34 --- phpdoc/en/language/basic-syntax.xml:1.33Wed May 8 13:46:38 2002 +++ phpdoc/en/language/basic-syntax.xml Fri Jun 13 07:05:30 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.33 $ -- +!-- $Revision: 1.34 $ -- chapter id=language.basic-syntax titleBasic syntax/title @@ -124,15 +124,17 @@ /note /para - note -para - Using short tags should be avoided when developing applications - or libraries that are meant for redistribution, or deployment on - PHP servers which are not under your control, because short tags - may not be supported on the target server. For portable, - redistributable code, be sure not to use short tags. -/para - /note + para +note + para + Using short tags should be avoided when developing applications + or libraries that are meant for redistribution, or deployment on + PHP servers which are not under your control, because short tags + may not be supported on the target server. For portable, + redistributable code, be sure not to use short tags. + /para +/note + /para para The closing tag for the block will include the immediately @@ -141,7 +143,7 @@ semicolon terminating the last line of a PHP block. /para -para + para PHP allows you to use structures like this: exampletitleAdvanced escaping/title programlisting role=php @@ -175,7 +177,8 @@ simpara Instructions are separated the same as in C or Perl - terminate -each statement with a semicolon./simpara +each statement with a semicolon. + /simpara para The closing tag (?gt;) also implies the end of the statement, so @@ -221,22 +224,25 @@ the line or the current block of PHP code, whichever comes first. /simpara - informalexample -programlisting role=php + para +informalexample + programlisting role=php ![CDATA[ h1This is an ?php # echo simple;? example./h1 pThe header above will say 'This is an example'. ]] -/programlisting - /informalexample + /programlisting +/informalexample + /para simpara You should be careful not to nest 'C' style comments, which can happen when commenting out large blocks. /simpara - informalexample -programlisting role=php + para +informalexample + programlisting role=php ![CDATA[ ?php /* @@ -244,14 +250,16 @@ */ ? ]] -/programlisting - /informalexample + /programlisting +/informalexample + /para simpara The one-line comment styles actually only comment to the end of the line or the current block of PHP code, whichever comes first. -This means that HTML code after // ? WILL be printed: ? skips out of -the PHP mode and returns to HTML mode, and // cannot influence that. +This means that HTML code after literal// ?/literal WILL be printed: +? skips out of the PHP mode and returns to HTML mode, and +literal///literal cannot influence that. /simpara /sect1 /chapter -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/language oop.xml
derick Fri Jun 13 07:24:29 2003 EDT Modified files: /phpdoc/en/language oop.xml Log: - PHP 5 has this too Index: phpdoc/en/language/oop.xml diff -u phpdoc/en/language/oop.xml:1.41 phpdoc/en/language/oop.xml:1.42 --- phpdoc/en/language/oop.xml:1.41 Mon Jun 9 15:28:28 2003 +++ phpdoc/en/language/oop.xml Fri Jun 13 07:24:29 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.41 $ -- +!-- $Revision: 1.42 $ -- chapter id=language.oop titleClasses and Objects/title @@ -489,7 +489,7 @@ caution simpara - The following is valid for PHP 4 only. + The following is valid for PHP 4 and later only. /simpara /caution -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /RFC 2003_meeting_agenda.html
gobaFri Jun 13 14:17:05 2003 EDT Modified files: /phpdoc/RFC 2003_meeting_agenda.html Log: Adding Alexander Index: phpdoc/RFC/2003_meeting_agenda.html diff -u phpdoc/RFC/2003_meeting_agenda.html:1.7 phpdoc/RFC/2003_meeting_agenda.html:1.8 --- phpdoc/RFC/2003_meeting_agenda.html:1.7 Thu Jun 5 13:37:30 2003 +++ phpdoc/RFC/2003_meeting_agenda.html Fri Jun 13 14:17:05 2003 @@ -68,7 +68,7 @@ div class=content h1PHP Documentation Meeting 2003 - Agenda/h1 -p class=cvsid$Id: 2003_meeting_agenda.html,v 1.7 2003/06/05 17:37:30 goba Exp $/p +p class=cvsid$Id: 2003_meeting_agenda.html,v 1.8 2003/06/13 18:17:05 goba Exp $/p pMembers of the PHP Documentation Team a title=meeting protocol href=http://www.php-ev.de/documents/phpdoc/protocol.html;met in 2002 @@ -105,6 +105,7 @@ liKronsbein, strongMark/strong/li liKuecuekyilmaz, strongHakan/strong/li liLerdorf, strongRasmus/strong/li +liMerz, strongAlexander/strong/li liRethans, strongDerick/strong/li liRichter, strongGeorg/strong [maybe only partial]/li liSchroder, strongKai/strong/li -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/appendices wrappers.xml
pollita Fri Jun 13 15:31:42 2003 EDT Modified files: /phpdoc/en/appendices wrappers.xml Log: Update to http context option Index: phpdoc/en/appendices/wrappers.xml diff -u phpdoc/en/appendices/wrappers.xml:1.18 phpdoc/en/appendices/wrappers.xml:1.19 --- phpdoc/en/appendices/wrappers.xml:1.18 Wed May 21 06:34:22 2003 +++ phpdoc/en/appendices/wrappers.xml Fri Jun 13 15:31:41 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.18 $ -- +!-- $Revision: 1.19 $ -- appendix id=wrappers titleList of Supported Protocols/Wrappers/title para @@ -106,7 +106,9 @@ tbody row entryliteralmethod/literal/entry - entryconstantGET/constant or constantPOST/constant + entry +constantGET/constant, constantPOST/constant, or +any other HTTP method supported by the remote server. /entry entryconstantGET/constant/entry /row @@ -133,7 +135,7 @@ entryliteralcontent/literal/entry entry Additional data to be sent after the headers. Typically used -with POST requests. +with POST or PUT requests. /entry entry/entry /row -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /RFC 2003_meeting_agenda.html
georg Fri Jun 13 17:11:39 2003 EDT Modified files: /phpdoc/RFC 2003_meeting_agenda.html Log: some corrections: Sascha will attend LinuxTag only on Sunday Thies and me attends db maintainer meeting Index: phpdoc/RFC/2003_meeting_agenda.html diff -u phpdoc/RFC/2003_meeting_agenda.html:1.8 phpdoc/RFC/2003_meeting_agenda.html:1.9 --- phpdoc/RFC/2003_meeting_agenda.html:1.8 Fri Jun 13 14:17:05 2003 +++ phpdoc/RFC/2003_meeting_agenda.html Fri Jun 13 17:11:38 2003 @@ -68,7 +68,7 @@ div class=content h1PHP Documentation Meeting 2003 - Agenda/h1 -p class=cvsid$Id: 2003_meeting_agenda.html,v 1.8 2003/06/13 18:17:05 goba Exp $/p +p class=cvsid$Id: 2003_meeting_agenda.html,v 1.9 2003/06/13 21:11:38 georg Exp $/p pMembers of the PHP Documentation Team a title=meeting protocol href=http://www.php-ev.de/documents/phpdoc/protocol.html;met in 2002 @@ -92,7 +92,6 @@ probably interested in the meeting [in alphabetical order, without accents]:/p ul -liArntzen, strongThies/strong C./li liBergmann, strongSebastian/strong/li liBetz, strongFriedhelm/strong/li liBoerger, strongMarcus/strong/li @@ -107,9 +106,7 @@ liLerdorf, strongRasmus/strong/li liMerz, strongAlexander/strong/li liRethans, strongDerick/strong/li -liRichter, strongGeorg/strong [maybe only partial]/li liSchroder, strongKai/strong/li -liSchumann, strongSascha/strong/li liStocker, strongChristian/strong/li liWeinert, strongThomas/strong/li liZic, strongSandro/strong/li -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] FYI: SPIC is now SP
Hi! Just a quick note: My CVS-ID has changed from spic to sp. Shane knows why... Please use from now on my new eMail-address [EMAIL PROTECTED]. Have a nice weekend Sebastian -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/language types.xml
hirokawaSat Jun 14 00:00:55 2003 EDT Modified files: /phpdoc/en/language types.xml Log: added note to explain unset() doesn't change maximum index value. Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.114 phpdoc/en/language/types.xml:1.115 --- phpdoc/en/language/types.xml:1.114 Sun Jun 8 07:48:58 2003 +++ phpdoc/en/language/types.xmlSat Jun 14 00:00:55 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.114 $ -- +!-- $Revision: 1.115 $ -- chapter id=language.types titleTypes/title @@ -1391,6 +1391,26 @@ /programlisting /informalexample /para + note + para + If you omit a key, the maximum of the integer-indices is taken, and + the new key will be that maximum + 1. + Note that the maximum is same when the element having + maximum-index was cleared using functionunset/function function. + informalexample +programlisting role=php +![CDATA[ +?php +$a = array(orange,apple,banana); +unset($a[2]); // clear $a[2] +$a[] = 'carrot'; // assign a new value without key +var_dump($a); // output: array(0 = 'orange', 1 = 'apple', 3 = 'carrot') +? +]] +/programlisting + /informalexample + /para + /note /sect3 /sect2!-- end syntax -- -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php