Commit graph

44 commits

Author SHA1 Message Date
Christoph M. Becker
89ee07c72d
Match substr() description to its signature
substr() no longer returns false as of PHP 8.0.0.
2021-09-09 18:04:26 +02:00
Sergey Panteleev
715a125af5
Fix section order issues (#664)
* Added parameters section for Tidy
* Fix section order for Svn
* Fix section order for Strings
2021-06-07 11:12:12 +03:00
Sergey Panteleev
8cdc6621f9
Remove PHP 5, 7 references (#563)
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03:00
Tyson Andre
3988654d13 Fix wording for substr changelog
Amends e095023e40

Closes GH-300.
2020-12-31 13:08:52 +01:00
Christoph Michael Becker
e095023e40 Generate some string methodsynopses based on stubs
Partial merge of https://github.com/php/doc-en/pull/265.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351904 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-05 14:30:42 +00:00
Christoph Michael Becker
b95d28e6ec Fix return types
Functions which return false on failure should state that in their
signature as well.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +00:00
Christoph Michael Becker
9af43469f4 Remove more changelog entries, mostly from PHP 5.2 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
6d98bc0a84 Remove out-dated info
Empty strings are fully supported as of PHP 7.0.0; the former behavior is
described in the changelog.

This issue has been reported by Mark Randall.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348487 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-11 13:57:58 +00:00
Christoph Michael Becker
1f705a6620 updated substr() documentation for PHP 7 (see #69931)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337321 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-07 12:49:48 +00:00
Christoph Michael Becker
7279eb69e5 typo fixes by anon users
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337307 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-06 22:59:13 +00:00
Christoph Michael Becker
610080f273 fixed markup (fixes #69505)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336949 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-14 15:14:16 +00:00
Peter Cowburn
531f2bac34 added comma for clarity
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336019 c90b9560-bf6c-de11-be94-00142212c4b1
2015-02-28 14:34:58 +00:00
Simion Onea
14af302c9c Making the XML definition consistent across the entire project.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334762 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-05 07:44:07 +00:00
Justin Martin
083e576970 Clarified empty string return value. Closes bug #60949.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323058 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-04 20:41:11 +00:00
Jakub Vrana
efef4dfef6 Changelog (doc bug #53935)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308179 c90b9560-bf6c-de11-be94-00142212c4b1
2011-02-10 11:35:46 +00:00
Justin Martin
3ed5f72b6c Indicated change to substr's behaviour with start positions beyond truncation positions.
Added changelog indicating this BC break. Bug #53252.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305175 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-07 19:53:45 +00:00
Justin Martin
c1a545fd27 Indicated that substr does not accept an empty string.
Added an example of casting behaviour.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305162 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-07 15:27:33 +00:00
Richard Quadling
7b4e2f0747 <function> => <parameter>. Fix #52760
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302968 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-01 10:03:06 +00:00
Yago Ferrer
9d84d8b88c Fixed broken build.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301608 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-27 11:22:38 +00:00
Daniel Egeberg
2e8619a7b8 Fixed PHP bug #52451 (substr() doc incomplete)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301600 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-27 06:31:38 +00:00
Richard Quadling
20bde54f0b Add links between substr, substr_compare with single character access.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295733 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-02 13:22:58 +00:00
Richard Quadling
3386603119 Typo (ahem) and moved error generating example to error refsect1.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290417 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-09 13:34:48 +00:00
Richard Quadling
99b6bb9716 Return false on failure. Fix bug#50107
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290408 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-09 09:57:37 +00:00
Richard Quadling
58aa2c2dc0 substr.xml() length of 0/false/null will return an empty string. Fix bug#49951
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@289854 c90b9560-bf6c-de11-be94-00142212c4b1
2009-10-22 15:53:26 +00:00
Torben Wilson
af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Nilgün Belma Bugüner
ed67b3c502 fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283839 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 09:08:43 +00:00
Jakub Vrana
edf9f39f9b Move info about returning false (bug #45967)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268331 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-05 09:00:09 +00:00
Felipe Pena
febcf0dd0f - Changed example to use square brackets
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260842 c90b9560-bf6c-de11-be94-00142212c4b1
2008-06-06 11:21:10 +00:00
Felipe Pena
09ee4e0cc2 - Fixed typo in comment. (reported by Brian Poole)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@258269 c90b9560-bf6c-de11-be94-00142212c4b1
2008-04-22 20:37:58 +00:00
Hannes Magnusson
c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Mehdi Achour
e727ac1f60 ref.strings (.* => .*): Switch to new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237778 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-15 19:01:57 +00:00
Mehdi Achour
30fae20937 WS, prepare for new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237777 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-15 19:01:26 +00:00
Nuno Lopes
a5b709a405 fix #38267: don't recommend ereg*(), as they are deprecated
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@217986 c90b9560-bf6c-de11-be94-00142212c4b1
2006-08-11 17:15:27 +00:00
Jakub Vrana
cb3edbe5f6 Missing semicolons
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177573 c90b9560-bf6c-de11-be94-00142212c4b1
2005-01-18 15:57:49 +00:00
Aidan Lister
de36e70579 Added examples for accesing the last char of a string (I always forget!)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177566 c90b9560-bf6c-de11-be94-00142212c4b1
2005-01-18 15:45:45 +00:00
Nuno Lopes
207206a637 integrate aidan's comments: added wordwrap and integrate some user notes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162587 c90b9560-bf6c-de11-be94-00142212c4b1
2004-07-03 12:13:06 +00:00
Nuno Lopes
0b17e7d6ae see also mb_xxx
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@150679 c90b9560-bf6c-de11-be94-00142212c4b1
2004-02-07 10:29:16 +00:00
Philip Olson
de033b2a48 See also substr_replace and trim.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@134269 c90b9560-bf6c-de11-be94-00142212c4b1
2003-07-06 16:09:20 +00:00
Thomas Schoefbeck
b22bb3e903 closed open bracket
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@113061 c90b9560-bf6c-de11-be94-00142212c4b1
2003-01-22 21:38:26 +00:00
Fernando Correa da Conceição
95ebc1e8d9 Place a missing <function>
Change a capital letter


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@111512 c90b9560-bf6c-de11-be94-00142212c4b1
2003-01-12 08:06:40 +00:00
Sander Roobol
d4f3867650 Minor rephrase #18326
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88587 c90b9560-bf6c-de11-be94-00142212c4b1
2002-07-13 08:44:43 +00:00
Philip Olson
19e072b2af + Accessing as $string{3} works too.
+ Added <?php ?> to all examples.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88108 c90b9560-bf6c-de11-be94-00142212c4b1
2002-07-08 20:49:45 +00:00
Hartmut Holzgraefe
5b9fc29465 revision tags added
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-17 06:45:35 +00:00
Hartmut Holzgraefe
a4b6d72ad3 banana-split
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78202 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-15 00:12:54 +00:00