why this code has error (Notice: Use of undefined constant - assumed '' on line 5)
<?
$arr1 = array(
">",
"<",
);
foreach ($arr1 as $value) {
echo $value;
}
why this code has error (Notice: Use of undefined constant - assumed '' on line 5)
<?
$arr1 = array(
">",
"<",
);
foreach ($arr1 as $value) {
echo $value;
}
This is not a bug. You have "non printable chars" in your code at that specific lines, that's why you get a notice. See image, vi never lies! :P
Delete your code and rewrite it from scratch (no copy/paste) and it will work