|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5343 a way of implementing class methods
Submitted: 2000-07-03 17:10 UTC Modified: 2002-10-27 19:05 UTC
From: teo at digiro dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.1 OS:
Private report: No CVE-ID: None
 [2000-07-03 17:10 UTC] teo at digiro dot net
How about:
function Foo::Bar() {
//implementation of method `Bar' in class `Foo'

ppl usually separate the functionality in different files, and with
classes this is only possible by forwarding calls to regular functions,
or by making use of derivation, which is not the best practice.

IMHO that would imply small changes to the parser (to recognize `::'
syntax), what do you think?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-06 08:41 UTC]
can you propose this on ?
 [2002-10-27 19:05 UTC]
the issue has been considered already...
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 15:01:28 2024 UTC