最近在开发php可扩展模块的时候,遇到一个问题,情形是这样子的:
我所开发的模块中有一个函数int get_memory_info(memory_info_t *arg);
memory_info_t的定义是这样子的:
typedef struct _memory_info{
    int total;
    int free;
    int swap;
}memory_info_t;在PHP页面中调用的时候,怎么样传递参数?在php页面中怎么样解释获取的结果呢?非常感谢您的指点,在线等。