array Sys_GetBattery ()
Array with information about the battery
Gives information about the presence of a battery, whether it is in use and what percentage of the battery charge is left. The remaining time and maximum battery life are indicated in seconds.
print_r(Sys_GetBattery()); /* // Sample output on a desktop PC without battery Array ( [OnBattery] => [IsCharging] => [BatteryLevel] => -1 [BatteryRemainingTime] => -1 [BatteryMaxTime] => -1 ) */