PHP

PHPDocumentor

Download the PHAR from their website. This is the easiest method to start with and works perfectly. php ~/phpDocumentor.phar -d . -t docs I found…
priyankmaniar
July 21, 2019
Regex

Regular Expressions

The best playground for regex: https://regexr.com/ All kinds of whitespace - tabs, line breaks, space etc. /\s/g Only alphabets and space Alphabets numbers and space
priyankmaniar
July 7, 2019
Apache

Debugging Issues with Apache2

Knowing the exact issue is important. apachectl configtest journalctl -xe systemctl status apache2.service sudo nano /var/log/apache2/error.log netstat -ltp | grep :80 # To know if…
priyankmaniar
May 20, 2019
Javascript

JavaScript Numbers

What is JavaScript equivalent for number_format in php? // Lodash to rescue // Works exactly as we expect. Output is a typeof number. _.round("10.608", 2);…
priyankmaniar
March 19, 2019