Amit20 Posted June 25, 2011 Share Posted June 25, 2011 Hi frnds, I m trying to count the length of aray using "count()", but when the script is executed i get the following error: Notice: Use of undefined constant count - assumed 'count' in D:\public_hmtl\mysite\php\example.php on line 21. But the catch is the script gives me my desired output. So what's wrong with my code????? i m using php version 5.3.5!!! Quote Link to comment https://forums.phpfreaks.com/topic/240353-undefined-constant-error/ Share on other sites More sharing options...
Nuv Posted June 25, 2011 Share Posted June 25, 2011 Can you please post the relevant code for us to understand the problem correctly. Also, since it is only a "Notice", it shouldn't be preventing the rest of the code from running. Quote Link to comment https://forums.phpfreaks.com/topic/240353-undefined-constant-error/#findComment-1234617 Share on other sites More sharing options...
Amit20 Posted June 25, 2011 Author Share Posted June 25, 2011 Thank You I tried and was able to deal with the error!!!! Quote Link to comment https://forums.phpfreaks.com/topic/240353-undefined-constant-error/#findComment-1234660 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.