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
 [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: Wed May 07 21:01:30 2025 UTC