| sscanf <<< |
str_pad | str_repeat >>> |
6.99 Chaînes de caractères (Strings) 6 Index des fonctions Manuel PHP . Introduction . Pré-requis . Installation . Constantes Prédefinies . Voir aussi . addcslashes . addslashes . bin2hex . chop . chr . chunk_split . convert_cyr_string . count_chars . crc32 . crypt . echo . explode . get_html_translation_table . get_meta_tags . hebrev . hebrevc . html_entity_decode . htmlentities . htmlspecialchars . implode . join . levenshtein . localeconv . ltrim . md5_file . md5 . metaphone . money_format . nl_langinfo . nl2br . number_format . ord . parse_str . printf . quoted_printable_decode . quotemeta . rtrim . setlocale . sha1_file . sha1 . similar_text . soundex . sprintf . sscanf ->str_pad . str_repeat . str_replace . str_rot13 . str_word_count . strcasecmp . strchr . strcmp . strcoll . strcspn . strip_tags . stripcslashes . stripslashes . stristr . strlen . strnatcasecmp . strnatcmp . strncasecmp . strncmp . strpos . strrchr . strrev . strrpos . strspn . strstr . strtok . strtolower . strtoupper . strtr . substr_count . substr_replace . substr . trim . ucfirst . ucwords . vprintf . vsprintf . wordwrap |
6.99.51 str_pad() Complète une chaîne jusqu'à une taille donnée[ Exemples avec str_pad ] PHP 4 >= 4.0.1 string str_pad ( string input , int pad_length , string pad_string , int pad_type )str_pad 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 . Si le paramètre optionnel pad_string est omis, input sera complété avec des espaces. Sinon, cette chaîne sera utilisée. L'argument optionnel pad_type peut être l'une des constantes suivantes : STR_PAD_RIGHT , STR_PAD_LEFT , ou STR_PAD_BOTH . Si pad_type n'est pas spécifiée, il prend la avleur par défaut de STR_PAD_RIGHT . Si la valuer de pad_length est négative, ou inférieure à la taille courante de la chaîne input , input est retournée inchangée.
|
| << | str_pad | >> |
| sscanf | Chaînes de caractères (Strings) | str_repeat |