When sending binary files, always think about what HTTP headers to choose. In case of sending a CSV file (almost ideal format for simple text tables, which can be processed by Excel), Content-Type: application/csv, in UTF-8 encoding is useful.…
A contingency table is generally used to show the relationship between two statistical phenomena. When developing a web application, we will often need to visualize the relationship of a certain phenomenon in the database to a time sequence,…
When we have a lot of data to dump, it's polite to split it into multiple pages. This article does not address the practical implementation of passing page numbers and listing results, only the theoretical extraction of values and calculation of the…
Quite often we need to have an array of values that are derived by a very simple algorithm (for example an array of numbers from $min to $max), this can be solved either in a complicated way:
``php
getNumbers(10, 100);
/**
@return int[]
*/…