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…
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 /** *…
JSON is a data format (possible the most) suitable for use with javascript, especially on ajax operations. Some characters in strings have to be escaped, otherwise json cannot be parsed and an error will…
RSS (Really Simple Syndication) is the use of an XML document in order to share content across the Internet. An RSS document, aka "feed" includes full or summarized text, plus…