Commit graph

876 commits

Author SHA1 Message Date
Sergey Panteleev
e4b52745bc
Fix html.c functions description (#1052)
Closes #1042
2021-10-27 11:50:38 +03:00
Tobias Bäthge
422bb03223
strspn() and strcspn(): Use proper parameter names in docs reference
* strspn(): Use proper parameter names in docs reference

Commit e095023e40 renamed the `$subject`, `$mask`, and `$start` parameters of the `strspn()` function to `$string`, `$characters`, and `$offset`, respectively. The three instances in the code example were missed.

* strcspn(): Use proper parameter names in docs reference

Commit e095023e40 renamed the `$subject`, `$mask`, and `$start` parameters of the `strcspn()` function to `$string`, `$characters`, and `$offset`, respectively. The three instances in the code example were missed.

Closes GH-977.
2021-09-28 11:39:53 +02:00
Craig Francis
eff487cfb3
Use 'ENT_QUOTES|ENT_SUBSTITUTE' for HTML encoding and decoding functions (#361) 2021-09-23 14:00:33 +01:00
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
Christoph M. Becker
abd75f51f4
explode() no longer returns false as of PHP 8.0.0
See also <https://bugs.php.net/bug.php?id=42129>.
2021-08-23 17:50:27 +02:00
JumiDeluxe
89a80389d4
Fix typo in stripos returnvalues (#848) 2021-08-12 20:00:49 +01:00
Christoph M. Becker
5dcdcf32f8
Fix #70799: strcasecmp is not locale aware 2021-07-30 13:01:43 +02:00
Christoph M. Becker
7d93e0fe5e
Fix #81284: str_getcsv cant parse with multibyte delimiter
There's no fun in DRY. ;)
2021-07-23 17:24:39 +02:00
Tiffany
0e81411492
Additional revisions to ucwords
Closes GH-727.
2021-06-27 12:30:10 +02:00
Kamil Tekiela
9d2b858bca
Remove magic_quotes_runtime docs
Closes GH-719.
2021-06-25 19:27:30 +02:00
Tiffany
552f92a2ec
Revise wording for ucwords (#726) 2021-06-24 09:30:02 -05:00
Kamil Tekiela
d335ba69a1
Remove split() and ereg()
Closes GH-716.
2021-06-23 20:20:58 +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
colshrapnel
f1def1dea9
Add a note to strtok
* Add a note to strtok 

There are some nuances, explained in the strtok man page, https://man7.org/linux/man-pages/man3/strtok.3.html namely starting, ending and duplicated tokens are ignored.

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>

Closes GH-643.
2021-06-01 14:27:01 +02:00
Máté
c44475e1fa
Generate methodsynopses based on stubs for Zend functions and methods
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-168.
2021-05-22 16:48:16 +02: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
George Peter Banyard
c69c209823
Fix explode() changelog entry
Drive-by indentation fix of the section
2021-05-01 19:14:48 +01:00
Kim Hallberg
6b5de328b9
Fix #80975: Doc incomplete - explode
* Add TypeError to changelog
* Add note about seperator values at start of end of string

Closes GH-558.
2021-04-29 18:03:25 +02:00
Sergey Panteleev
a0ae28d3bc
Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Andrew Foster
7a3899eea9
Fix double "language" (#538) 2021-04-20 13:39:32 +08:00
Rowan Tommins
4d3d1ebea1
Document and cross-reference mb_chr() and mb_ord() (#524) 2021-04-13 14:49:11 +02:00
Christoph M. Becker
c73b00a6d7
Fix #63663: str_word_count does not properly handle non-latin characters
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-31 15:34:59 +02:00
Yoshinari Takaoka
eea9c73ba4 fixed example some more, added to previous commit. 2021-03-11 21:53:51 +09:00
Yoshinari Takaoka
16eda7d3c3 fixed example, print argument is wrong somehow. 2021-03-11 21:49:39 +09:00
Rowan Tommins
ede9d209f6 Clarify the syntax and role of arguments for echo and print
- Rather than implying that parentheses are optional, make clear
  that they are never part of the syntax for these keywords.
- Don't spend so many examples on different types of string.
- Do include examples of non-string arguments.
- Add a note with additional examples of how parentheses interact.
- Don't refer to either construct as "function-like", instead use
  the term "expression" consistently.
- Additional tidying to make the pages more consistent with each
  other.
- Add "print" to the list of language constructs which are
  documented as functions.
- Remove mention of what PHP versions below 5.4 did with short
  echo tags.
2021-03-10 14:37:20 +01:00
Christoph M. Becker
230b56bf45 Fix #76314: Specify failure return type for soundex
There is no more failure as of PHP 8.0.0, and the former behavior is
already described in the changelog.  We clarify the return value,
though.
2021-02-12 16:22:08 +01:00
Yoshinari Takaoka
cb3e68d99d changed warning about deleted functions as of PHP 8.0.0. 2021-02-10 03:44:01 +09:00
Lucas Werkmeister
923fbe0653 explode: update reference to implode param order
The legacy order was deprecated in 7.4 and removed in 8.0.

Closes GH-372.
2021-01-22 13:20:53 +01:00
Yoshinari Takaoka
0aeef38a9c Added PHP 8 into versions.xml for strings functions 2021-01-16 14:41:43 +01:00
George Peter Banyard
4a7ddddc27
Remove some mentions of register globals 2021-01-16 11:30:04 +00:00
Máté Kocsis
5453bb7d88 Generate string methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-265.
2021-01-02 01:19:41 +01:00
Christoph M. Becker
b2a1cefc64 Remove obsolete PHP 5 info in crypt() docs 2021-01-02 01:15:51 +01:00
Yoshinari Takaoka
2f4863e1f6 improved parameter markup in strtok function description.
Closes php/doc-en#306
2021-01-02 06:57:13 +09:00
Máté Kocsis
2a7c919451 Generate string methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Cf. <https://github.com/php/doc-en/pull/265>.
2021-01-01 19:19:03 +01:00
Christoph M. Becker
3c969c420f Update implode() docs for PHP 8.0.0
Closes GH-269.
2021-01-01 16:22:06 +01:00
Christoph M. Becker
a810fcc1ff implode-fix 2021-01-01 15:48:17 +01: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
8c5fdb928b Update methodsynopses of (v)sprintf()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352213 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-27 18:36:21 +00:00
Christoph Michael Becker
8b12549bff Remove some PHP 5 specific info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351924 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 14:45:00 +00:00
Christoph Michael Becker
043aa7b524 The \v escape sequence is supported as of PHP 5.2.5
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351905 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-05 14:45:17 +00: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
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753 Revert revision 351727 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
9737e4b259 Added documentation for the str_starts_with and str_ends_with functions based on https://php.watch/versions/8.0/str_starts_with-str_ends_with
Patch contributed by Emmanuel Okeke <emmanix2002@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351549 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-23 21:50:15 +00:00
Christoph Michael Becker
3bed8bca1c Added documentation for the str_contains function based on the RFC here: https://wiki.php.net/rfc/str_contains
Patch contributed by Emmanuel Okeke <emmanix2002@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351548 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-23 18:47:38 +00:00
Christoph Michael Becker
adcfa45072 Document all CRYPT_* constants
Patch contributed by Meindert-Jan Kroese <mkroese@eljakim.nl>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351278 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-06 09:38:43 +00:00
Christoph Michael Becker
eaff4ac633 Fix #69906: chr() behavior difference between 32- and 64-bit bulids
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351219 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 13:23:13 +00:00
Christoph Michael Becker
ef05457faa Fix #60314: Metaphone returns fewer phonemes than defined
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351215 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 10:08:57 +00:00