Req #76570 [Opn->Nab]: An uncondition
| From: | requinix@php.net | Date: | Tue, 03 Jul 2018 07:17:45 +0000 |
| Subject: | Req #76570 [Opn->Nab]: An uncondition | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216094@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
Updated by: requinix@php.net
Reported by: iyagicom at gmail dot com
Summary: An uncondition
-Status: Open
+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:
No, constants can be in lowercase.
You need a string for the array key. Strings use quotes.
$arr = preg_split("/-/",$f["link"]);
Previous Comments:
------------------------------------------------------------------------
[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