The document discusses hidden features of PHP, including the __DIR__ magic constant for retrieving the directory of a script, the ?? operator for retrieving a non-empty value from expressions, using GOTO for error handling, OpenSSL functions for hashing, encryption and decryption, preventing double encoding with HTML entities functions, date parsing, finding files with stream_resolve_include_path, improving session security, mail logging, directory traversal with SPL iterators, using igbinary for faster serialization, profiling with xhprof, identifying file types with fileinfo, and creating and reading Excel files with PHP-Excel.