php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1171 chomp function
Submitted: 1999-02-21 11:56 UTC Modified: 1999-11-26 14:00 UTC
From: penn at usa dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.5 OS: Linux 2.0.35
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: penn at usa dot net
New email:
PHP Version: OS:

 

 [1999-02-21 11:56 UTC] penn at usa dot net
chomp function (like perl has):

function chomp($String)
{
  $TheEnd=strchr($String,"\n");
  $Result=substr($String,0,$TheEnd-1);
  return $Result;
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-26 14:00 UTC] rasmus at cvs dot php dot net
See the chop() function
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 16:00:01 2026 UTC