Display PHP errors via ini_set at the top of a file, or permanently in php.ini, .user.ini, or .htaccess. Why parse…
PHP string uppercase with strtoupper, mb_strtoupper for UTF-8, ucfirst and ucwords for title case. When CSS text-transform is the better…
PHP string to float: (float) cast for clean numbers, preg_replace + cast for mixed currency strings, NumberFormatter for locale-aware parsing.…
PHP merge arrays unique: union operator (+) for keyed arrays, array_unique+array_merge for numeric, array_replace_recursive for deep nested config merges.
PHP delete array element four ways: unset by key, array_splice by offset, array_filter by callback, array_search + unset by value.…
mysqldump all databases — single command exports the whole server. Covers --single-transaction for live servers, compression, scheduled backups, and import.
MySQL create user + GRANT privileges on MySQL 8/Ubuntu. Covers auth_socket / caching_sha2 / mysql_native_password plugins, scoped grants, REVOKE, and…
MySQL connect to remote server from Ubuntu: install mysql-client only, use mysql -h host -u user -p. Plus 'No route…
MySQL combine columns into string with CONCAT or CONCAT_WS. NULL-skipping behavior, indexing/performance considerations, and using it from Laravel/WordPress.
MySQL top CPU usage: SHOW FULL PROCESSLIST for a snapshot, performance_schema for historical digest. Match user/db to sites, then EXPLAIN…
Sign in to your account