Preloader

PHP 75

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.

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

30432
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

46460
How to align an image to the bottom of a table cell in Dompdf
PHP

How to align an image to the bottom of a table cell in Dompdf

Learn how to align images to the bottom of a table cell with CSS in Dompdf.

Carlos Delgado Carlos Delgado
  • February 10, 2018

  • Estimated reading time: 3 Minutes

27332
How to deserialize a DC2Type array datatype stored with Doctrine in your database
PHP

How to deserialize a DC2Type array datatype stored with Doctrine in your database

Learn what DC2Type strings stored with Doctrine in your Database mean and how to unserialize them.

Carlos Delgado Carlos Delgado
  • December 11, 2017

  • Estimated reading time: 3 Minutes

28584
How to handle safely PHP error: __toString() must not throw an exception
PHP

How to handle safely PHP error: __toString() must not throw an exception

Learn how to solve the "__toString() must not throw an exception" error in PHP.

Carlos Delgado Carlos Delgado
  • October 21, 2017

  • Estimated reading time: 1 Minute

12981
How the PHP functions "func_get_arg" and "func_get_args" changed from PHP 5.x to PHP 7.x
PHP

How the PHP functions "func_get_arg" and "func_get_args" changed from PHP 5.x to PHP 7.x

Learn why your current code that uses the func_get_arg function may end up with different results when upgrading from PHP 5.x to 7.x

Carlos Delgado Carlos Delgado
  • October 15, 2017

  • Estimated reading time: 1 Minute

16319
How to implement custom fonts in TCPDF
PHP

How to implement custom fonts in TCPDF

Learn how to use custom fonts for your PDF using the PHP TCPDF library.

Carlos Delgado Carlos Delgado
  • October 9, 2017

  • Estimated reading time: 4 Minutes

61705
What is the PHP Year 2038 (Y2K38) bug and how to solve it
PHP

What is the PHP Year 2038 (Y2K38) bug and how to solve it

Learn more about the Year 2038 Bug and know how to check if your PHP code is susceptible to it.

Carlos Delgado Carlos Delgado
  • October 7, 2017

  • Estimated reading time: 4 Minutes

37013
How to add a watermark on a PDF using TCPDF
PHP

How to add a watermark on a PDF using TCPDF

Learn how to override the default behaviour of TCPDF to add your own watermark.

Carlos Delgado Carlos Delgado
  • October 4, 2017

  • Estimated reading time: 6 Minutes

58906
How to calculate a percentage change (increase and decrease) from 2 values in PHP
PHP

How to calculate a percentage change (increase and decrease) from 2 values in PHP

Learn how to calculate a positive and negative percentage change between 2 numbers in PHP easily.

Carlos Delgado Carlos Delgado
  • September 4, 2017

  • Estimated reading time: 1 Minute

32856
Our Sponsors

Our blog is proudly supported by industry-leading sponsors.