elephant.io
elephant.io copied to clipboard
problem with read()
I send request and receive the response. After refresh send again, the connect are duplicate and receive more response. The result like that : string(990) "42["data-emit",[{"task_id":387,"total_like":1800,"comment":286,"share":21,"view":0},{"task_id":387,"total_like":1800,"comment":286,"share":21,"view":0},{"task_id":387,"total_like":1800,"comment":286,"share":21,"view":0},{"task_id":387,"total_like":1800,"comment":286,"share":21,"view":0},{"task_id":387,"total_like":1800,"comment":286,"share":21,"view":0}]]" How can i clear this?
@taihq $r = mb_substr($r, 2)