There’s some good info about common config options over here: Where Is php.ini, the PHP Configuration File?
The phpinfo()
function will tell you which php.ini file applies.
There’s some good info about common config options over here: Where Is php.ini, the PHP Configuration File?
The phpinfo()
function will tell you which php.ini file applies.
I stumbled upon phpSysInfo, a PHP library for system information. Haven’t actually used it, yet.
Some notes on features in Modern PHP.
Some notes about arrays in PHP over here: PHP: Frankenstein arrays. I was already aware of most of that but I thought the notes at the bottom about supporting JSON were handy:
If you want to enforce an array to encode to a JSON list (all array keys will be discarded), use:
json_encode(array_values($array));
And if you want to enforce an array to encode to a JSON object, use:
json_encode((object)$array);
Also array_is_list is available as of PHP 8.1.
I’m reading the source code for PDOStatement::fetchAll().
sizeof( zval ) == 16; sizeof( zend_value ) == 8;
PHP 8.0 release notes: PHP 8.0
This is handy: PHP type comparison tables.
And this is interesting: List of Parser Tokens.
Bumped into: Complete guide to FFI in PHP.