php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #6131 str_pad does not accept optional fourth parameter
Submitted: 2000-08-12 17:47 UTC Modified: 2001-03-09 22:00 UTC
From: billn at gct-us dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.1pl2 OS: Freebsd
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: billn at gct-us dot com
New email:
PHP Version: OS:

 

 [2000-08-12 17:47 UTC] billn at gct-us dot com
str_pad does not accept optional fourth parameter. Adding STR_PAD_LEFT or any fourth parameter causes 
Warning: Wrong parameter count for str_pad() error

Example script:
$emailpass=str_pad($emailpass, 12, " ", STR_PAD_LEFT); 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-12 17:51 UTC] stas@php.net
See #6020
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 10 23:01:29 2025 UTC