Code snippets

You will find here code snippets I find useful so I don't have to Google them or search on Stackoveflow when I need them. There are also code snippets I always forget! 😁 Sometimes related links to the code will be available. The main difference with other snippets you will find on other sites is that in some case (for the Symfony related ones mostly) you will be able to run them directly from this blog and to check the output so you can verify it works as expected.

Published on 2019-02-12 • Modified on 2019-02-12

 Show me the code