php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60068 Inconsistencies in language
Submitted: 2011-10-16 08:32 UTC Modified: 2011-10-30 03:20 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: php dot net at kangaconsulting dot co dot uk Assigned:
Status: Wont fix Package: Unknown/Other Function
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 - 33 = ?
Subscribe to this entry?

 
 [2011-10-16 08:32 UTC] php dot net at kangaconsulting dot co dot uk
Description:
------------
Hello

I think php is fantastic but I do find it is a bit inconsistent. The following line illustrates my point exactly:

$foo = addslashes(file_get_contents($bar));

When are underscores used to separate words and when aren't they?

It would be much easier to remember as the language grows if it was always one or the other.

Apart from that php is a great language in every respect and thanks a lot for writing it.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-30 03:20 UTC] cataphract@php.net
-Status: Open +Status: Wont fix
 [2011-10-30 03:20 UTC] cataphract@php.net
Can't be done at this point (all PHP scripts in existence would have to be extensively rewritten).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 02:01:31 2024 UTC