|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-07-03 07:11 UTC] 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]);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
No, constants can be in lowercase. You need a string for the array key. Strings use quotes. $arr = preg_split("/-/",$f["link"]);