Preloader

PHP 73

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.

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

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.

Carlos Delgado Carlos Delgado
  • August 16, 2018

  • Estimated reading time: 1 Minute

24582
How to create the abbreviation of a number in PHP
PHP

How to create the abbreviation of a number in PHP

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

Carlos Delgado Carlos Delgado
  • August 13, 2018

  • Estimated reading time: 2 Minutes

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

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.

Carlos Delgado Carlos Delgado
  • August 5, 2018

  • Estimated reading time: 3 Minutes

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

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.

Carlos Delgado Carlos Delgado
  • July 4, 2018

  • Estimated reading time: 3 Minutes

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

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.

Carlos Delgado Carlos Delgado
  • June 30, 2018

  • Estimated reading time: 2 Minutes

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

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.

Carlos Delgado Carlos Delgado
  • June 22, 2018

  • Estimated reading time: 3 Minutes

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

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.

Carlos Delgado Carlos Delgado
  • June 22, 2018

  • Estimated reading time: 2 Minutes

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

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.

Carlos Delgado Carlos Delgado
  • April 22, 2018

  • Estimated reading time: 2 Minutes

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

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.

Carlos Delgado Carlos Delgado
  • March 31, 2018

  • Estimated reading time: 2 Minutes

29508
How to change the value of a variable outside of the scope within a closure function in PHP
PHP

How to change the value of a variable outside of the scope within a closure function in PHP

Learn how to update the value of a variable that is outside from the scope of a closure function in PHP.

Carlos Delgado Carlos Delgado
  • March 17, 2018

  • Estimated reading time: 2 Minutes

45673
Our Sponsors

Our blog is proudly supported by industry-leading sponsors.