6 articles PHP
Laravel – How to override vendor class file?
Learn how to override vendor classes/libraries files in composer.json
Database Installer
Database Installer performs installation of MySQL databases by php scripts. Features: Install mysql databases Check existence of tables in mysql database Delete existing mysql database Re-install mysql database and more. How to use? Step 1: Put all the files in a folder named database-installer as the file structure shown above Step 2: Replace the mysql.sql…
nl2el – A better alternative to PHP nl2br
I was used to use nl2br when showing some content with line brakes, but first time my requirement was to format that html code and applying some styles. So I was thinking about alternative of nl2br PHP function.
Send print_r output to Firebug Console.log()
Many times when we are developing projects we need to debug so we print something using print_r (maybe you’re using var_dump) it meshes up our page. So Here I found a function that will be helpful for you.
Where function is declared, Get file name and line no in PHP
Sometimes when developing in PHP in large applications searching for function (without IDE) in all the files becomes boring. So I was looking for quick solution of this. By searching few minutes I found great solution.