Commit graph

55 commits

Author SHA1 Message Date
cslawi
1debec1be1 Further explanations on the behaviour of include() and require().
Also gives differences between PHP3 and PHP4 when using these statements.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16743 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-07 00:02:38 +00:00
cslawi
7a82262c24 Fixed up the predefined variable list some more.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16706 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-06 10:25:30 +00:00
cslawi
aea6da18e1 Added a 'Basics' section to sort of flesh out the use of variables.
More importantly, added a bunch of stuff about predefined PHP variables,
since people keep asking about them. I've tried to make it fairly clear
that many of these will not be available in all circumstances.

I hope someone will access to other webservers can provide some
information on unique variables provided (under stock setups) by those
servers. An exhaustive listing may be impossible, but at least we can
explain the bits that are known.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16690 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-06 03:23:22 +00:00
cslawi
2b2b47991e Changed id for expressions section to "language.expressions", for
consistency.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16689 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-06 03:19:54 +00:00
Egon Schmid
18978760cb The speaker from Software AG for Tamino told us XML should be readable for humans and machines. I hope it will now get a little bit closer.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16414 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-02 23:20:50 +00:00
Egon Schmid
9b1341f8ad Andrei it works! I have only adjust my manual.ced and I can do a proper identation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16413 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-02 22:29:48 +00:00
Andrei Zmievski
4a1652884f Explained heredoc syntax.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16412 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-02 22:14:35 +00:00
cslawi
199b12b5ee Documented use of variable-length arg lists in PHP4.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16359 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-01 20:17:17 +00:00
cslawi
41e8681c86 Simply doc it and add examples.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16351 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-01 18:42:28 +00:00
cslawi
4ccdd7ecae Add note about variable-length argument lists and default arguments.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16330 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-01 11:44:13 +00:00
cslawi
1bd457d70d Note that PHP does not support function overloading.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16329 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-01 11:39:13 +00:00
cslawi
83604f1760 Clarified static use for recursion a bit.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16328 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-01 11:05:45 +00:00
cslawi
c475555c4f Add note about possible $string[index] syntax change for characters in
strings.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16327 c90b9560-bf6c-de11-be94-00142212c4b1
1999-12-01 11:01:51 +00:00
cslawi
4df1f16e46 Consistency would be good...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16277 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-30 21:20:48 +00:00
cslawi
918cfc45fb User note regarding switch vs. elseif speed.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16276 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-30 21:20:14 +00:00
cslawi
ae6dcad3aa Fixed a typo (!= should've been |=); added ^= to precedence table.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16275 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-30 20:56:39 +00:00
cslawi
2af375e200 Fixed a couple of typos.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16274 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-30 20:50:27 +00:00
cslawi
87eeba65f6 Someone thought this would make things clearer.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16263 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-30 19:24:31 +00:00
cslawi
3b2019acf6 Another couple of notes on string concatenation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16262 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-30 19:21:52 +00:00
cslawi
685f12082c Clarified single-quoted string explanation a bit.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@16261 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-30 18:56:27 +00:00
Rasmus Lerdorf
992481eea4 Fix a nitpick
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15963 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-26 13:27:08 +00:00
cslawi
3bf6b32dff Add some simple string usage examples.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15453 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-16 04:19:36 +00:00
cslawi
00183339b7 Document variable functions.
Alphabetization fix.
Note that in PHP3 you need to define functions before using them, but
that in PHP4, you don't.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15451 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-16 02:50:21 +00:00
cslawi
f55004a99b Document the behaviour of $arr = (array) $scalar; and
$obj = (object) $scalar;


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15450 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-16 02:23:40 +00:00
cslawi
3c82dcd8ff Alphabetization fix.
Added === to the precedence table.
Added pre- and post- increment and decrement operators.
Various small fixes.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15439 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 23:11:27 +00:00
cslawi
bce142e6f3 Add note that variable names are case-sensitive.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15438 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 21:54:09 +00:00
cslawi
16ad25e59e Add note regarding current behaviour of automatic conversion to array.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15437 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 21:51:30 +00:00
cslawi
d3002bd7a4 Added '===' (identical to).
Alphabetization fix.
Typo fix (result of division is quotient, not dividend).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15429 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 10:34:08 +00:00
cslawi
11588720bc Added backtick operator and some crossrefs.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15428 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 10:03:16 +00:00
cslawi
14bcbd7250 Added note about passing by value and reference in PHP3 and 4.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15427 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 09:32:18 +00:00
cslawi
309f654bf5 Note that include( 'file.inc&varone=1&vartwo=2' ) isn't the way to do it.
Seems to be people keep running into this one.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15424 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 04:39:16 +00:00
cslawi
7bd0ca713f Note that multiple inheritance is not supported.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15414 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 00:55:22 +00:00
cslawi
c150e1fa9f Note PHP4's syntax for putting multidim arrays in strings.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15413 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 00:50:48 +00:00
cslawi
84aeda822a Fix Constructor_Cart example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15412 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-15 00:41:57 +00:00
cslawi
1df2e98071 Added note about referencing multidimensional arrays in strings.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15403 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-14 23:43:00 +00:00
cslawi
5318587714 Updated the Alternative syntax section to include the other structures
which support the syntax; added note to switch section mentioning that it
supports it; added some references to the individual examples.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15402 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-14 23:16:29 +00:00
cslawi
09673d1ef7 Clarified the $arr[] = $val explanation a bit.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15362 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-14 11:58:50 +00:00
cslawi
2db8fae9e3 Added note about dots being changed to underscores in incoming
variable names.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@15348 c90b9560-bf6c-de11-be94-00142212c4b1
1999-11-13 22:47:23 +00:00
cslawi
aeb2d5524e Normalized according to the DocBook 3.1 DTD. This mostly just adds
closing tags and attribute quotes, but lets a stock 3.1 install
compile the PHP docs. It still compiles with DocBook 3.0, as well.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@14695 c90b9560-bf6c-de11-be94-00142212c4b1
1999-10-20 22:54:01 +00:00
Jouni Ahto
267492ef23 Changed wording. Hope it makes a little more sense now.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@13743 c90b9560-bf6c-de11-be94-00142212c4b1
1999-09-27 18:22:21 +00:00
Jouni Ahto
de48047a5d Fix #2389.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@13739 c90b9560-bf6c-de11-be94-00142212c4b1
1999-09-27 17:20:58 +00:00
cslawi
41e146cd12 Clarified the short tags and ASP tags wording a bit.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@13400 c90b9560-bf6c-de11-be94-00142212c4b1
1999-09-21 08:58:05 +00:00
James Gingerich
a5023e38a8 Fix typo.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@12314 c90b9560-bf6c-de11-be94-00142212c4b1
1999-08-29 01:14:11 +00:00
James Gingerich
950cb22709 More fixups.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@11563 c90b9560-bf6c-de11-be94-00142212c4b1
1999-08-01 01:23:47 +00:00
James Gingerich
8c71fc1397 Minor cleanups.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@11562 c90b9560-bf6c-de11-be94-00142212c4b1
1999-08-01 00:58:48 +00:00
James Gingerich
c94e6f314c Be more explicit in showing how multiple 'case' statements can be grouped.
Remove in-line numbers from the informal examples.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@11560 c90b9560-bf6c-de11-be94-00142212c4b1
1999-08-01 00:46:16 +00:00
James Gingerich
198362e1d0 Add ^ documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@11558 c90b9560-bf6c-de11-be94-00142212c4b1
1999-08-01 00:39:46 +00:00
Andrey Hristov
d19926bf81 Typo.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@11007 c90b9560-bf6c-de11-be94-00142212c4b1
1999-07-19 22:36:47 +00:00
Andrey Hristov
1411ed879c Added note about "unset" default value.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@11006 c90b9560-bf6c-de11-be94-00142212c4b1
1999-07-19 22:35:40 +00:00
James Gingerich
a6ce94a06c Move OOP stuff into its own chapter. Didn't add any information yet,
just moved it to a more prominent position.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@10613 c90b9560-bf6c-de11-be94-00142212c4b1
1999-07-13 22:21:50 +00:00