News:

SMF - Just Installed!

Main Menu

Pad to both sides of the string:

Started by KingSparta, Dec 16, 2023, 02:27 PM

Previous topic - Next topic

KingSparta

Pad to both sides of the string:

<?php
$str = "Hello World";
echo str_pad($str,20,".:",STR_PAD_BOTH);
?>