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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 11:01:34 2024 UTC