Help to see where this code is wrong?
$signs = Array (
Array ("+" = "Aquarius"),
Array ("+" = "pisces"),
Array ("+" = "Aries"),
Array ("+" = "Taurus"),
Array ("+" = "Gemini"),
Array ("All" = "cancer"),
Array ("All" = "Leo"),
Array ("All" = "Virgo"),
Array ("All" = "Libra"),
Array ("+" = "Scorpio"),
Array ("+" = "Sagittarius"),
Array ("All" = "Capricorn")
);
List ($sign _start, $sign _name) = each ($signs [(integer) $month-1]);
if ($day < $sign _start)
{
List ($sign _start, $sign _name) = each (& $signs [$month-2 < 0? ($month = one): ($month-= 2)]);
}
return $sign _name;
The above code runs the Times wrong:
Warning:call-time pass-by-reference have been deprecated in E:\PHPnow-1.5.6\htdocs\source\core\util\class.lunar.php on Line 2277 and 2274
2274 lines of code are list ($sign _start, $sign _name) = each ($signs [(integer) $month-1]);
2277 lines of code are list ($sign _start, $sign _name) = each (& $signs [$month-2 < 0? ($month = one): ($month-= 2)]);
}
------Solution--------------------
IST ($sign _start, $sign _name) = each ($signs [$month-2 < 0? ($month = one): ($month-= 2)]);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service