php_bw_load_replay

object php_bw_load_replay(string path)

WARNING : from version 3.0, php_bw_load_replay() does NOT return FALSE anymore when failing to load a replay ! See the ErrorCode and ErrorString members below for more information on how to test if a replay failed to be loaded.
php_bw_load_replay opens the replay specified as the path argument, extracts all information it can and returns the result.
The returned object has the following members :

The Players member contains the following members :
The Teams array contains one array per team, each of them containing only the names of its members.

The Map object contains the following members : The Winner object contains the following members : The Version object contains the following members :

See example here