Extract Initials

Extract initials from a name.

Code

General
strtoupper(implode('', array_map(fn($w) => $w[0], explode(' ', $name))));

Parameters

The full name to extract initials from

Server

More PHP Snippets