Lines Matching refs:fp
9 function writeAndDump($fp, $format, $args)
11 ftruncate( $fp, 0 );
12 $length = vfprintf( $fp, $format, $args );
13 rewind( $fp );
14 $content = stream_get_contents( $fp );
23 $fp = fopen( $file, "a+" );
26 writeAndDump( $fp, "Foo is %d and %s", array( 30, 'bar' ) );
27 writeAndDump( $fp, "%s %s %s", array( 'bar', 'bar', 'bar' ) );
28 writeAndDump( $fp, "%d digit", array( '54' ) );
29 writeAndDump( $fp, "%b %b", array( true, false ) );
30 writeAndDump( $fp, "%c %c %c", array( 65, 66, 67 ) );
31 writeAndDump( $fp, "%e %E %e", array( 1000, 2e4, +2e2 ) );
32 writeAndDump( $fp, "%02d", array( 50 ) );
33 writeAndDump( $fp, "Testing %b %d %f %s %x %X", array( 9, 6, 2.5502, "foobar", 15, 65 ) );
36 fclose( $fp );