Installing Xdebug for XAMPP with PHP 7.0

Posted Posted in PHP

Setup Download Xdebug for PHP 7: http://xdebug.org/files/php_xdebug-2.4.0rc3-7.0-vc14.dll Copy file php_xdebug-2.4.0rc3-7.0-vc14.dll to: C:\xampp\php\ext Open file with notepad++: C:\xampp\php\php.ini Disbale output buffering: output_buffering = Off Scroll down […]

Mysql dump encoding errors

Posted Posted in PHP

If you get some errors like ’ instead of apostrophe try the following   $contents = mb_convert_encoding( file_get_contents( ‘FILEPATH_OF_PROBLEMATIC_FILE’ ), “HTML-ENTITIES”, “UTF-8” ); file_put_contents(‘FILEPATH_OF_PROBLEMATIC_FILE–FIXED’, $contents);

prd

Posted Posted in PHP

Use the below function for small tests 🙂 /** * Print multiple arrays in a pretty way and die() * * @param mixed * @return […]