Advertising
September
01

How to compile a PHP extension (DLL file) in Windows with Visual Studio

Learn how to compile PHP extensions from its source code using Visual Studio in a Windows environment.

August
16

How to solve PHPExcel fatal error: Uncaught exception 'PHPExcel_Writer_Exception' with message 'Could not close zip'

Learn why this exception is thrown during the creation of an excel file with PHPExcel.

August
13

How to create the abbreviation of a number in PHP

Learn how to generate a readable abbreviation of a number in PHP.

August
05

How to retrieve the human name of a color by its hex code in PHP

Learn how to retrieve a readable name of an hexadecimal color code with PHP.

July
04

How to write a text file with ANSI encoding (Western Windows-1252) in PHP

Learn how to write a plain text file in PHP with the Western Windows 1252 encoding.

June
30

How to round up/down to nearest 10 or 5 minutes of DateTime in PHP

Learn how to round down/up the minutes of a DateTime object in PHP by some interval.

June
22

How to convert a nested PHP array to a CSS, SASS, LESS rule (string)

Learn how to convert an array to a CSS, LESS or SASS rule in a string format.

June
22

How to group an array of associative arrays by key in PHP

Learn how to group an array of associative arrays by some key with PHP.

April
22

How to Get Rid of the PHP Warning: json_encode() expects parameter 2 to be long, string given

Learn why this warning appears in your PHP code and how to solve it.

March
31

Converting bytes to human readable values (KB, MB, GB, TB, PB, EB, ZB, YB) with PHP

Learn how to convert a value of bytes into an easily readable bytes format with PHP.

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.