Simple old function to load a file into a string.
$s = loadStrFile("file.txt"); function loadStrFile($filename) { $handle = fopen ($filename, "rb"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); return $contents; }
Simple old function to load a file into a string.
$s = loadStrFile("file.txt"); function loadStrFile($filename) { $handle = fopen ($filename, "rb"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); return $contents; }
A nice solution found by chatGPT
Collection of notes and thoughts on Wordpress Gutenberg blocks development.
Notes about Core Web Vitals optimization challenge
A PHP function to to quickly search complex, nested php structures for specific values.
Really nice blog, nice snippet codes, thx 4 sharing :D