hi everybody.
I'am a C# programmer and for one of my applications i searched web for
a piece of code and finally i found it but in PHP.
it was easy to understand the logic but i still have a problem with it.
There is single line of code that i can't understand.Woul d u please
help me and explain what is going on?
Code :
1)
for ($i = 0; $g_day_no >= $g_days_in_mont h[$i] + ($i == 1 &&
$leap); $i++)
$g_day_no -= $g_days_in_mont h[$i] + ($i == 1 && $leap);
$g_day_no >= $g_days_in_mont h[$i] + ($i == 1 && $leap) :-/
2)
what is div statement?
There is a line of code like this:
$gy += 4*div($g_day_no , 1461);
what is div for?
i searched in PHP functions but i did not find anything.
Thanks for ur appreciates.
Behzad
I'am a C# programmer and for one of my applications i searched web for
a piece of code and finally i found it but in PHP.
it was easy to understand the logic but i still have a problem with it.
There is single line of code that i can't understand.Woul d u please
help me and explain what is going on?
Code :
1)
for ($i = 0; $g_day_no >= $g_days_in_mont h[$i] + ($i == 1 &&
$leap); $i++)
$g_day_no -= $g_days_in_mont h[$i] + ($i == 1 && $leap);
$g_day_no >= $g_days_in_mont h[$i] + ($i == 1 && $leap) :-/
2)
what is div statement?
There is a line of code like this:
$gy += 4*div($g_day_no , 1461);
what is div for?
i searched in PHP functions but i did not find anything.
Thanks for ur appreciates.
Behzad
Comment