Lines Matching refs:fp
15 function writeAndDump($fp, $format, $args)
17 ftruncate( $fp, 0 );
18 $length = vfprintf( $fp, $format, $args );
19 rewind( $fp );
20 $content = stream_get_contents( $fp );
29 $fp = fopen( $file, "a+" );
32 writeAndDump( $fp, "Foo is %d and %s", array( 30, 'bar' ) );
33 writeAndDump( $fp, "%s %s %s", array( 'bar', 'bar', 'bar' ) );
34 writeAndDump( $fp, "%d digit", array( '54' ) );
35 writeAndDump( $fp, "%b %b", array( true, false ) );
36 writeAndDump( $fp, "%c %c %c", array( 65, 66, 67 ) );
37 writeAndDump( $fp, "%e %E %e", array( 1000, 2e4, +2e2 ) );
38 writeAndDump( $fp, "%02d", array( 50 ) );
39 writeAndDump( $fp, "Testing %b %d %f %s %x %X", array( 9, 6, 2.5502, "foobar", 15, 65 ) );
42 fclose( $fp );