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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Wed Apr 24 02:01:30 2024 UTC