Christoph M. Becker
36a894a627
Fix #1566 : crypt(): --with-external-libcrypt undocumented
2022-05-23 16:09:37 +02:00
Christoph M. Becker
4225e50bc3
Fix GH-1571: f/sscanf() do not mention assignment suppression feature
2022-05-09 14:49:30 +02:00
Morgan Arnel
840ed22479
Clarify which characters are translated by htmlentities
...
Closes GH-1438.
2022-04-22 14:18:25 +02:00
George Peter Banyard
a223531900
Fix section order issues introduced by 99d758bd25
2022-04-04 18:05:11 +01:00
Rowan Tommins
99d758bd25
Improve documentation of string encoding conversion functions
...
- Move utf8_encode and utf8_decode into the strings chapter, since
they were moved out of the XML extension in 7.2
- Recommend mb_convert_encoding, iconv, and UConverter::transcode
when mentioning encoding in passing
- Document UConverter::transcode, based on examination of source
and upstream ICU docs
- Make the language used more consistent, e.g. "convert" rather
than "encode"/"decode", "encoding" rather than "charset"
Closes GH-1418.
2022-04-04 12:24:24 +02:00
Sergey Panteleev
6330e4d731
Add examples for string functions ( #1477 )
2022-03-31 10:41:58 -05:00
Kévin Dunglas
15247c75e1
False isn't allowed for substr()'s $length ( #984 )
2022-03-30 16:37:31 -05:00
Steve Thomas
f93ab9943c
password_verify
is capable of verifying crypt
hashes
...
Closes GH-1424.
2022-02-22 17:15:50 +01:00
Peter
560262a557
Update strlen documentation for PHP8
...
Length parameter to substr() behaves differently for PHP8+. It recognizes null as if no value was provided at all. Updated the documentation to reflect this.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1219.
2022-02-10 12:53:41 +01:00
Gabriel Millian
7d1b425bd7
Fix typo (case-insentive → case-insensitive)
...
Closes GH-1354.
2022-01-21 23:47:49 +01:00
Christoph M. Becker
98ba3bd97a
Fix #1328 : bcrypt max password length is about bytes, not characters
2022-01-14 13:45:21 +01:00
Kamil Tekiela
c1adec107f
Add mb_str_split to see also in str_split
...
Closes GH-1309
2022-01-07 16:05:46 +00:00
Máté Kocsis
eabde0419c
Update some string function parameter default values ( #1272 )
2021-12-30 14:03:52 +01:00
Máté Kocsis
769812c12f
Generate various ext/standard method synopses from stubs - part 5 ( #1232 )
2021-12-22 12:34:12 +01:00
Kamil Tekiela
5dfba3d91f
Add more implode examples
...
Closes GH-1195.
2021-12-13 14:07:29 +01:00
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