Req #76570 [Nab]: An uncondition
| From: | iyagicom at gmail dot com | Date: | Fri, 06 Jul 2018 04:00:23 +0000 |
| Subject: | Req #76570 [Nab]: An uncondition | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216165@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76570&edit=1
ID: 76570
User updated by: iyagicom at gmail dot com
Reported by: iyagicom at gmail dot com
Summary: An uncondition
Status: Not a bug
Type: Feature/Change Request
Package: Variables related
Operating System: ubuntu 18.04
PHP Version: 7.1.19
Block user comment: N
Private report: N
New Comment:
Do not you understand me?
Constant names should not be lowercase.
Exclude lowercase characters in constant names.
In the next version of PHP, allow only uppercase letters in constant names.
Previous Comments:
------------------------------------------------------------------------
[2018-07-03 12:50:52] requinix@php.net
PHP does not care if it is uppercase or lowercase. What matters is how you use it.
It's true, most people name constants in uppercase, but that is not a requirement and PHP
should not make it a requirement. Lowercase constants are allowed.
------------------------------------------------------------------------
[2018-07-03 12:42:35] iyagicom at gmail dot com
I know it.
I'm not saying that.
If you write an uppercase letter as the first character in a constant grammar,
You do not have to do that.
Is not that right?
I mean, do not treat lowercase letters as constants.
------------------------------------------------------------------------
[2018-07-03 07:17:44] requinix@php.net
No, constants can be in lowercase.
You need a string for the array key. Strings use quotes.
$arr = preg_split("/-/",$f["link"]);
------------------------------------------------------------------------
[2018-07-03 07:11:57] iyagicom at gmail dot com
Description:
------------
The first letter lowercase is not a constant.
Only the first capital letter should be recognized as a constant.
I am too stressed because of constants in program coding.
I hope to improve soon.
I made it in lowercase, but I get an error.
Notice: Use of undefined constant link - assumed 'link' in /home/mall/phpmall/cc_list.php
on line 83
Test script:
---------------
$arr = preg_split("/-/",$f[link]);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76570&edit=1