Question: How can I detect if a user holds their finger down on an onscreen object for 1 second ?

Thanks,

Martin

Answer: 
`$data = file_get_contents("http://api.microsofttranslator.com/V2/Ajax.svc/Speak?appId=APPID&text={$text}&language=ja&format=audio/wav");  

$data = stripslashes(trim($data));`

`if (substr($data, 0, 3) == "\xef\xbb\xbf") {  

 $data = substr($data, 3);  

}`
To remove it from the beginning of the string (only):

```
$data = preg_replace('/^%EF%BB%BF/', '', $data);

```