DEVGET.NET

Feeding Your Inner Developer

Tag: php

mysqlnd vs libmysql

TL:DR If you are using php 5.3.3 or newer then go mysqlnd, otherwise stay with the default libmysql. Whats the…

How to display array in human readable format in php

To print the display in ‘human readable’ format, use the html preformatting tag before print_r: echo “<pre>”; print_r($myarray); echo “</pre>”;…

How to display errors in php

In php.ini ” nano /etc/php5/apache2/php.ini ” Change ‘display_errors’ from ‘Off’ to ‘On’

Boolean toggle in PHP

Instead of using: if($boolean === true){ $boolean = false; }else{ $boolean = true; } One can use $boolean = !$boolean;…

© 2020 DEVGET.NET. Theme by Anders Norén.