How to find whether a variable is positive integer with PHP
PHP is_numeric() is useful to find whether a variable is a number or a numeric string. How you can check if a variable is an integer? You may use the…
PHP is_numeric() is useful to find whether a variable is a number or a numeric string. How you can check if a variable is an integer? You may use the…
A convenient way to pass a single or multidimensional (possible utf-8) array is to serialize it ("convert it to a string") and pass it using a hidden input. After post…
It is very important for dynamic web applications, any js and css changes to become available to user (without need to refresh - reload browser page). Instead of <script type="text/javascript"…
PHP stripos (or mb-stripos) finds the position of the first occurrence of a (case-insensitive) substring in a string. How to find all occurrences? Here is a solution: <?php /** *…
Trying to dump mysql databases (especially after mysql 5.1), it is possible to get the error mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist…