wb_peek

string wb_peek (int address, [, int length])

Gets the contents of a memory area pointed by address. If length is empty or zero, returns bytes up to the first NUL character (zero-character) or up to 32767 bytes, whichever comes first. If length is greater than zero, returns length bytes.

Example

// Read the contents of a string

echo wb_peek(wb_get_address("Demo string"));

// Read a WBOBJ structure

define("WBOBJ",         "Vhwnd/Vid/Vuclass/litem/lsubitem/Vstyle/Vparent/Vhandler/Vlparam/V8lparams/Vpbuffer");
define("WBOBJ_RAW",     "V3l2V13");
define("WBOBJ_SIZE",    72);

$wbobj = unpack(WBOBJ, wb_peek($window, WBOBJ_SIZE));
print_r($wbobj);

See also

wb_get_address
wb_poke
Low-level functions