functions-online

str_pad

en
de
es
fr
pt

description

This functions returns the $input string padded on the left, the right, or both sides to the specified padding length. If the optional argument $pad_string is not supplied, the $input is padded with spaces, otherwise it is padded with characters from $pad_string up to the limit.

Die Funktion gibt den $input-String, erweitert auf der linken, rechten oder auf beiden Seiten um die angegebene Länge, zurück. Wenn das optionale Argument $pad_string nicht angegeben ist, wird $input durch Leerzeichen erweitert, anderenfalls bis zum Ende durch die in $pad_string angegebenen Zeichen.

Esta función rellena la cadena $input por la derecha, la izquierda o por ambos lados hasta la longitud indicada. Si no se especifica el argumento opcional $pad_string, la $input se rellena con espacios. En caso contrario, será rellenada con los caracteres de $pad_string hasta el límite.

Retourne la chaîne $input, complétée à droite, à gauche ou dans les deux sens, avec la chaîne $pad_string jusqu'à ce qu'elle atteigne la taille de $pad_length.

Esta função retorna a string $input preenchida na esquerda, direita ou ambos os lados até o tamanho especificado. Se o parâmetro opcional $pad_string não for indicado, $input é preenchido com espaços, se não é preenchido com os caracteres de $pad_string até o limite.

O parâmetro opcional $pad_type pode ser STR_PAD_RIGHT (preencher a direita), STR_PAD_LEFT (preencher a esquerda), ou STR_PAD_BOTH (preencher de ambos os lados). If $pad_type não for especificado é assumido que seja STR_PAD_RIGHT.

function call

string str_pad( string $input , int $pad_length [, string $pad_string ] [, int $pad_type ] )

test str_pad online













comments for str_pad

be the first

No comments so far for str_pad. Leave your's as first below.

+

Leave your comment