Why am I getting *uninitialized* warning when I call a function in php?
PHP 1. {main}() /Users/aaron/NetBeansProjects/PhpProject2/CssToSQL.php:0
PHP 2. GetContentRules($contentRules = *uninitialized*) /Users/aaron/NetBeansProjects/PhpProject2/CssToSQL.php:134
Line 134: $contentRuleList = GetContentRules($configSections['vips']);
function GetContentRules($contentRules) { ... }
$configSect开发者_JAVA技巧ions['vips']
contains like 1114 lines
My function works as expected, but I'm trying to figure out why this error is thrown?
TIA!
Error != warning. A warning is simply an indication of something you SHOULD fix, but don't HAVE to. If it was an error, your script would bomb out at the point the error occured. Given the error message you're sort of hinting at in the question title, your $configSections['vips']
is not defined. Either $configSections
itself isn't, or there's no ['vips']
key in the array.
精彩评论