I want to redirect echo command output to a text file.My PHP code contain echo $TOKEN;Here $TOKEN contains variable value i want to write this value into a text file. Any one can help on this.

Thanks in adavance.