I have the following
$nextDisponibility->formatLocalized('%A %e %B à %kh%M')
which gives me
lundi 13 novembre à 8h00
How could I remove the space before the single hour digit ?
From php doc:
%k Hour in 24-hour format, with a space preceding single digits 0 through 23
Is preg_replace('!\s+!', ' ', $nextDisponibility->formatLocalized('%A %e %B à %kh%M')); the best way to do this ?