From 0780ebdf3769073f335a27694e82459854343f96 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Fri, 4 Jul 2003 22:08:05 +0000 Subject: [PATCH] added a note as suggested in bug #21318 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@134199 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/str-pad.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reference/strings/functions/str-pad.xml b/reference/strings/functions/str-pad.xml index 3c9f702508..4acd1776b8 100644 --- a/reference/strings/functions/str-pad.xml +++ b/reference/strings/functions/str-pad.xml @@ -1,5 +1,5 @@ - + @@ -51,6 +51,13 @@ print str_pad($input, 10, "_", STR_PAD_BOTH); // produces "__Alien___" + + + The pad_string may be truncated if the + required number of padding characters can't be evenly diveded by + the padding strings length. + +