Skip to content
Carl Victor Fontanos
Carl Victor Fontanos

Carl Victor Fontanos

Software Engineer

I build web applications and share what I learn along the way.

© 2026

Tips & Tricks

50 tutorials

Step-by-step programming tutorials on PHP, JavaScript, Laravel, WordPress and more.

PHP Intermediate

Render Your Email Templates with Output Buffering

ob_start() plus include turns any PHP file into a string-returning template - the exact mechanism template engines are built on, useful raw for emails, PDFs and HTML fragments.

2 min 727
PHP Intermediate

PHP's match(true) Pattern Replaces if/elseif Chains

match() is not just a stricter switch. Feed it true as the subject and every arm becomes an arbitrary condition - an elegant, exhaustive replacement for elseif ladders.

2 min 2,014
PHP Beginner

array_column() Does Way More Than Grab a Column

The third parameter turns array_column into a re-indexing tool, it reads object properties, and combined with array_map it handles most of your collection reshaping.

2 min 1,454
CSS Beginner

gap Works in Flexbox Too (Kill Your Margin Hacks)

The lobotomized owl, :not(:last-child) margins, negative-margin wrappers - all workarounds for spacing between flex items. gap has worked in flexbox everywhere since 2021.

2 min 3,468
CSS Intermediate

Fluid Typography with One Line of clamp()

Stop writing a font-size media query for every breakpoint. clamp() scales type smoothly with the viewport between a floor and a ceiling you control.

2 min 4,492
CSS Beginner

The Two-Word Fix for Ugly Headline Wrapping

A headline that wraps leaving one lonely word on the second line looks broken. text-wrap: balance makes the browser distribute the words evenly, and text-wrap: pretty fixes paragraphs.

2 min 851
JavaScript Beginner

Serialize an Entire Form in One Line with FormData

new FormData(form) reads every field in one call, posts natively with fetch, and Object.fromEntries turns it into JSON. You may never write form.elements loops again.

2 min 3,310