sami37
New Member
- Sep 29, 2016
- 2
- 0
Hello,
i currently got a c# code that i want to convert to php, but i got a part that i don't know how to convert.
how i can convert this c# code to php
Console.WriteLine("Variance : " + variance);
while (variance > 0)
{
var stat = (byte)(variance & 0x1f);
variance >>= 5;
stats.Add(stat);
}
i am blocked at the "variance >>= 5;"
i currently got a c# code that i want to convert to php, but i got a part that i don't know how to convert.
how i can convert this c# code to php
Console.WriteLine("Variance : " + variance);
while (variance > 0)
{
var stat = (byte)(variance & 0x1f);
variance >>= 5;
stats.Add(stat);
}
i am blocked at the "variance >>= 5;"