doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

English PHP documentation

Results 497 doc-en issues
Sort by recently updated
recently updated
newest added

C.f. https://github.com/php/php-src/commit/52a891aeaa1333b3cb02f0dfd796c0fae8ab175c

Category: Documentation

`var_export()` needs to prefix classes it references with `\`, because its code could be transplanted in any source location/namespace, so the assumption of it being used only in the context...

The `constant()` & `defined()` methods can be used with dynamic enum cases names, which doesn't seem to be documented anywhere at the moment.

shouldn't https://www.php.net/manual/en/language.types.enumerations.php mention that enums are available since 8.1+?

bug

From manual page: https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex --- There is a note about "Complex (curly) syntax" on the manual page: > The value accessed from functions, method calls, static class variables, and class...

For example: `function test(int $value) { echo $value; }` when we give as argument 'true' the output will be '1'. True isn't a integer value.

This documentation change supports the php-src pull request at https://github.com/php/php-src/pull/7644

### Description The following code: ```php

bug

From manual page: https://php.net/datetime.createfromformat --- Manual says [date_create_from_format](https://www.php.net/manual/en/function.date-create-from-format.php)(string $format, string $datetime, ?[DateTimeZone](https://www.php.net/manual/en/class.datetimezone.php) $timezone = null): [DateTime](https://www.php.net/manual/en/class.datetime.php)|false gets a DateTime object as its first argument But the primitive clearly show a...