Lines Matching refs:f
8 $f = fopen($fn, "w");
9 fwrite($f, "Hello");
10 ftruncate($f, 2);
11 fwrite($f, "World");
12 fclose($f);
15 $f = fopen($fn, "w");
16 fwrite($f, "Hello");
17 ftruncate($f, 2);
18 fclose($f);
21 $f = fopen('php://memory', 'w+');
22 fwrite($f, 'Hello');
23 ftruncate($f, 2); // in 7.3 changes file pointer to 2
24 fwrite($f, 'World');
25 rewind($f);
26 var_dump(addslashes(stream_get_contents($f)));
27 fclose($f);