<?php
$nome = preg_split("/((de|da|do|dos|das)?)[\s,_-]+/", "A C Loja do Supermercado"); $iniciais = "";
foreach($nome as $n)
{
{
$iniciais .= $n[0];
}
}
echo $iniciais;
PD9waHAKCiRub21lID0gcHJlZ19zcGxpdCgiLygoZGV8ZGF8ZG98ZG9zfGRhcyk/KVtccyxfLV0rLyIsICJBIEMgTG9qYSBkbyBTdXBlcm1lcmNhZG8iKTsKJGluaWNpYWlzID0gIiI7CmZvcmVhY2goJG5vbWUgYXMgJG4pCnsKICAgIGlmIChzdHJsZW4oJG4pID4gMCkKICAgIHsKICAgICAgICRpbmljaWFpcyAuPSAkblswXTsKICAgIH0KfQoKZWNobyAkaW5pY2lhaXM7