Home
last modified time | relevance | path

Searched refs:format (Results 126 – 150 of 681) sorted by relevance

12345678910>>...28

/PHP-5.3/ext/standard/tests/strings/
H A Dvprintf_variation7.phpt5 /* Prototype : string vprintf(string format, array args)
12 * the '$format' and '$args' arguments of the function
45 // Arrays of string values for the format defined in $format.
46 // Each sub array contains string values which correspond to each format string in $format
58 // looping to test vprintf() with different string formats from the above $format array
61 foreach($formats as $format) {
63 $result = vprintf($format, $args_array[$counter-1]);
H A Dvsprintf_variation7.phpt5 /* Prototype : string vsprintf(string format, array args)
12 * the '$format' and '$args' arguments of the function
45 // Arrays of string values for the format defined in $format.
46 // Each sub array contains string values which correspond to each format string in $format
58 // looping to test vsprintf() with different string formats from the above $format array
61 foreach($formats as $format) {
63 var_dump( vsprintf($format, $args_array[$counter-1]) );
H A Dvfprintf_variation13.phpt9 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
16 * the '$format' and '$args' arguments of the function
33 // Arrays of hexa values for the format defined in $format.
34 // Each sub array contains hexa values which correspond to each format string in $format
52 // looping to test vfprintf() with different char octal from the above $format array
55 foreach($formats as $format) {
57 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dvfprintf_variation13_64bit.phpt9 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
16 * the '$format' and '$args' arguments of the function
33 // Arrays of hexa values for the format defined in $format.
34 // Each sub array contains hexa values which correspond to each format string in $format
52 // looping to test vfprintf() with different char octal from the above $format array
55 foreach($formats as $format) {
57 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dvfprintf_variation11.phpt9 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
16 * the '$format' and '$args' arguments of the function
33 // Arrays of octal values for the format defined in $format.
34 // Each sub array contains octal values which correspond to each format string in $format
55 foreach($formats as $format) {
57 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dvfprintf_variation19.phpt2 Test vfprintf() function : usage variations - with whitespaces in format strings
9 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
14 echo "*** Testing vfprintf() : with white spaces in format strings ***\n";
16 // initializing the format array
53 // looping to test vfprintf() with different scientific formats from the above $format array
56 foreach($formats as $format) {
58 vfprintf($fp,$format, $args_array[$counter-1]);
70 *** Testing vfprintf() : with white spaces in format strings ***
H A Dvfprintf_variation19_64bit.phpt2 Test vfprintf() function : usage variations - with whitespaces in format strings
9 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
14 echo "*** Testing vfprintf() : with white spaces in format strings ***\n";
16 // initializing the format array
53 // looping to test vfprintf() with different scientific formats from the above $format array
56 foreach($formats as $format) {
58 vfprintf($fp,$format, $args_array[$counter-1]);
70 *** Testing vfprintf() : with white spaces in format strings ***
H A Dvfprintf_variation9.phpt5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
29 // Arrays of char values for the format defined in $format.
30 // Each sub array contains char values which correspond to each format string in $format
48 // looping to test vfprintf() with different char formats from the above $format array
51 foreach($formats as $format) {
53 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dvfprintf_variation11_64bit.phpt9 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
16 * the '$format' and '$args' arguments of the function
33 // Arrays of octal values for the format defined in $format.
34 // Each sub array contains octal values which correspond to each format string in $format
55 foreach($formats as $format) {
57 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dvfprintf_variation7.phpt5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
12 * the '$format' and '$args' arguments of the function
45 // Arrays of string values for the format defined in $format.
46 // Each sub array contains string values which correspond to each format string in $format
63 // looping to test vfprintf() with different string formats from the above $format array
66 foreach($formats as $format) {
68 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dvprintf_variation19.phpt2 Test vprintf() function : usage variations - with whitespaces in format strings
9 /* Prototype : string vprintf(string $format , array $args)
14 echo "*** Testing vprintf() : with white spaces in format strings ***\n";
16 // initializing the format array
48 foreach($formats as $format) {
50 $result = vprintf($format, $args_array[$counter-1]);
59 *** Testing vprintf() : with white spaces in format strings ***
H A Dvprintf_variation19_64bit.phpt2 Test vprintf() function : usage variations - with whitespaces in format strings
9 /* Prototype : string vprintf(string $format , array $args)
14 echo "*** Testing vprintf() : with white spaces in format strings ***\n";
16 // initializing the format array
48 foreach($formats as $format) {
50 $result = vprintf($format, $args_array[$counter-1]);
59 *** Testing vprintf() : with white spaces in format strings ***
H A Dvfprintf_basic3.phpt2 Test vfprintf() function : basic functionality - float format
5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
10 echo "*** Testing vfprintf() : basic functionality - using float format ***\n";
14 $format = "format";
56 *** Testing vfprintf() : basic functionality - using float format ***
H A Dsscanf_basic8.phpt2 Test sscanf() function : basic functionality - hexadecimal format
6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
7 * Description: Parses input from a string according to a format
11 echo "*** Testing sscanf() : basic functionality - - using hexadecimal format ***\n";
18 // extract details using short format
25 // extract details using long format
34 *** Testing sscanf() : basic functionality - - using hexadecimal format ***
/PHP-5.3/ext/standard/
H A Dformatted_print.c380 char *format, *result, padding; in php_formatted_print() local
432 if (format[inpos] != '%') { in php_formatted_print()
446 format[inpos], inpos)); in php_formatted_print()
447 if (isascii((int)format[inpos]) && !isalpha((int)format[inpos])) { in php_formatted_print()
472 format[inpos], inpos)); in php_formatted_print()
474 if (format[inpos] == ' ' || format[inpos] == '0') { in php_formatted_print()
475 padding = format[inpos]; in php_formatted_print()
482 padding = format[++inpos]; in php_formatted_print()
509 if (format[inpos] == '.') { in php_formatted_print()
540 if (format[inpos] == 'l') { in php_formatted_print()
[all …]
/PHP-5.3/Zend/
H A Dzend_sprintf.c31 int zend_sprintf(char *buffer, const char *format, ...) in zend_sprintf() argument
35 va_start(args, format); in zend_sprintf()
36 vsprintf(buffer, format, args); in zend_sprintf()
/PHP-5.3/ext/date/tests/
H A DDateTime_setTime_basic1.phpt19 echo "Initial date: " . $datetime ->format(DATE_RFC2822) . "\n";
22 echo "After modification1 " . $datetime ->format(DATE_RFC2822) . "\n";
25 echo "After modification2 " . $datetime ->format(DATE_RFC2822) . "\n";
28 echo "After modification3 " . $datetime ->format(DATE_RFC2822) . "\n";
31 echo "After modification4 " . $datetime ->format(DATE_RFC2822) . "\n";
34 echo "After modification5 " . $datetime ->format(DATE_RFC2822) . "\n";
H A Ddate_sub_basic.phpt20 $format = 'Y-m-d H:i:s';
29 var_dump( $d->format($format) );
33 var_dump( $d->format($format) );
H A Ddate_add_basic.phpt20 $format = 'Y-m-d H:i:s';
29 var_dump( $d->format($format) );
33 var_dump( $d->format($format) );
H A Dbug43003.phpt8 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
11 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
14 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
17 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
20 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
H A Dbug52668.phpt11 echo $dt->format('r') . "\n"; // Sun, 12 Dec 2010 00:00:00 +0100
13 echo $start->format('r'), "\n";
15 echo $dt->format('r') . "\n"; // Sun, 12 Dec 2010 00:00:00 +0100
17 echo $start->format('r'), "\n\n";
H A Dbug46268.phpt8 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
11 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
14 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
18 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
H A Dbug48097.phpt9 echo $d->format( DATE_ISO8601 ), "\n";
10 echo $d->format( 'U' ), "\n\n";
14 echo $d->format( DATE_ISO8601 ), "\n\n";
15 echo $d->format( 'U' ), "\n\n";
/PHP-5.3/main/
H A Dphp_sprintf.c31 php_sprintf (char*s, const char* format, ...) in php_sprintf() argument
36 va_start (args, format); in php_sprintf()
38 ret = vsprintf (s, format, args); in php_sprintf()
/PHP-5.3/ext/soap/
H A Dphp_soap.h198 #define soap_error0(severity, format) \ argument
199 php_error(severity, "SOAP-ERROR: " format)
201 #define soap_error1(severity, format, param1) \ argument
202 php_error(severity, "SOAP-ERROR: " format, param1)
204 #define soap_error2(severity, format, param1, param2) \ argument
205 php_error(severity, "SOAP-ERROR: " format, param1, param2)
207 #define soap_error3(severity, format, param1, param2, param3) \ argument
208 php_error(severity, "SOAP-ERROR: " format, param1, param2, param3)

Completed in 37 milliseconds

12345678910>>...28