Skip to main content

Items tagged with: php

Search

Items tagged with: php


🆕 blog! “An opinionated HTML Serializer for PHP 8.4”

A few days ago, I wrote a shitty pretty-printer for PHP 8.4's new Dom\HTMLDocument class.

I've since re-written it to be faster and more stylistically correct.

It turns this:

<html lang="en-GB"><head><title id="something">Test</title></head><body><h1 class="top upper">Testing</h1><main><p>Some <em>HTML</em> and an…

👀 Read more: shkspr.mobi/blog/2025/04/an-op…

#HowTo #HTML5 #php


Some people hate PHP because it was their first language, they wrote a ton of bad code in it, learned better practices along the way as they switched to other languages, and then look back on their old code and blame the language.

#PHP

#PHP