Input Asterisk

I code by php, I want to get information file word agi those values ​​from the X-lite. Ex: X-Lite press 1 file agi you got the value is 1?
Thank!

help me

I success!
$result = $agi->get_data(’/music’, 500, 20);
$keys = $result[‘result’];
$agi->stream_file(“enter here”);
$agi->say_digits($keys);