AbeMeister
MIS
Is there a function in PHP that will take a variable and add space after it to make it a specific length. In other words:
$example1 = "cow";
$example2 = "google";
echo "$example1$example2!!";
Output:
cowgoogle!!
Where as I would like to:
$example1 = fake_string_length_function($example1, 10);
$example2 = fake_string_length_function($example2, 10);
echo "$example1$example2!!";
Output:
cow google !!
^
12345678901234567890
$example1 = "cow";
$example2 = "google";
echo "$example1$example2!!";
Output:
cowgoogle!!
Where as I would like to:
$example1 = fake_string_length_function($example1, 10);
$example2 = fake_string_length_function($example2, 10);
echo "$example1$example2!!";
Output:
cow google !!
^
12345678901234567890