update page now

Voting

: max(five, two)?
(Example: nine)

The Note You're Voting On

bxi at apparoat dot nl
17 years ago
In case you want to pad 2 strings together with a character you can use:

<?php
function pad_between_strings($string1, $string2, $length, $char = " ") {
    $fill_length = $length - ( strlen($string1) + strlen($string2) );
    return $string1 . str_repeat($char, $fill_length) . $string2;
}
?>

<< Back to user notes page

To Top