why this code has error (Notice: Use of undefined constant – assumed ‘’ on line 5)
<?
$arr1 = array(
">",
"<",
);
foreach ($arr1 as $value) {
echo $value;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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! 😛
Delete your code and rewrite it from scratch (no copy/paste) and it will work