/*
int file_put_contents ( string $filename , mixed $data [, int $flags = 0
[, resource $context ]] )
*/
// The function is the same as calling fopen(), fwrite() and fclose()
$num_chars = file_put_contents("e:/test.txt", "PHP For web applications Is popular on the net");
echo $num_chars
/*
run:
46
*/