Home
last modified time | relevance | path

Searched refs:format (Results 51 – 75 of 798) sorted by relevance

12345678910>>...32

/PHP-5.5/ext/date/tests/
H A Dstrftime_variation8.phpt2 Test strftime() function : usage variation - Passing literal related strings to format argument.
5 /* Prototype : string strftime(string format [, int timestamp])
17 $format = "%%";
19 echo "\n-- Testing strftime() function with a literal % character to format --\n";
20 var_dump( strftime($format) );
21 var_dump( strftime($format, $timestamp) );
28 -- Testing strftime() function with a literal % character to format --
H A Dstrftime_variation6.phpt2 Test strftime() function : usage variation - Passing time related format strings to format argument.
5 /* Prototype : string strftime(string format [, int timestamp])
21 'Hour as decimal by 24-hour format' => "%H",
22 'Hour as decimal by 12-hour format' => "%I",
24 'AM/PM format for a time' => "%p",
41 --Hour as decimal by 24-hour format--
45 --Hour as decimal by 12-hour format--
53 --AM/PM format for a time--
H A Dgmstrftime_variation6.phpt2 Test gmstrftime() function : usage variation - Passing time related format strings to format argume…
5 /* Prototype : string gmstrftime(string format [, int timestamp])
20 'Hour as decimal by 24-hour format' => "%H",
21 'Hour as decimal by 12-hour format' => "%I",
23 'AM/PM format for a time' => "%p",
40 --Hour as decimal by 24-hour format--
44 --Hour as decimal by 12-hour format--
52 --AM/PM format for a time--
H A Dbug40743.phpt6 echo $dt->format(DATE_RFC822), "\n";
7 echo $dt->format('T e Z'), "\n";
13 echo $dt->format(DATE_RFC822 . " e T O U"), "\n";
16 echo $dt->format(DATE_RFC822 . " e T O U"), "\n";
20 echo $dt->format(DATE_RFC822 . " e T O U"), "\n";
23 echo $dt->format(DATE_RFC822 . " e T O U"), "\n";
26 echo $dt->format(DATE_RFC822 . " e T O U"), "\n";
29 echo $dt->format(DATE_RFC822 . " e T O U"), "\n";
/PHP-5.5/ext/standard/tests/strings/
H A Dvprintf_basic2.phpt2 Test vprintf() function : basic functionality - integer format
5 /* Prototype : string vprintf(string $format , array $args)
11 * Testing vprintf() : basic functionality - using integer format
14 echo "*** Testing vprintf() : basic functionality - using integer format ***\n";
17 $format = "format";
40 *** Testing vprintf() : basic functionality - using integer format ***
H A Dsprintf_basic1.phpt2 Test sprintf() function : basic functionality - string format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using string format ***\n";
13 $format = "format";
22 var_dump( sprintf($format) );
36 *** Testing sprintf() : basic functionality - using string format ***
37 string(6) "format"
H A Dsprintf_basic3.phpt2 Test sprintf() function : basic functionality - float format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using float format ***\n";
15 $format = "format";
28 var_dump( sprintf($format) );
45 *** Testing sprintf() : basic functionality - using float format ***
46 string(6) "format"
H A Dprintf_basic1.phpt2 Test printf() function : basic functionality - string format
5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
6 * Description: Produces output according to format .
10 echo "*** Testing printf() : basic functionality - using string format ***\n";
13 $format = "format";
22 $result = printf($format);
45 *** Testing printf() : basic functionality - using string format ***
48 format
H A Dprintf_basic8.phpt2 Test printf() function : basic functionality - octal format
11 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
12 * Description: Produces output according to format .
16 echo "*** Testing printf() : basic functionality - using octal format ***\n";
19 $format = "format";
28 $result = printf($format);
50 *** Testing printf() : basic functionality - using octal format ***
53 format
H A Dprintf_basic7.phpt2 Test printf() function : basic functionality - unsigned format
11 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
12 * Description: Produces output according to format .
16 echo "*** Testing printf() : basic functionality - using unsigned format ***\n";
20 $format = "format";
29 $result = printf($format);
51 *** Testing printf() : basic functionality - using unsigned format ***
54 format
H A Dprintf_basic9.phpt2 Test printf() function : basic functionality - hexadecimal format
5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
6 * Description: Produces output according to format .
10 echo "*** Testing printf() : basic functionality - using hexadecimal format ***\n";
14 // Initialising different format strings
15 $format = "format";
29 $result = printf($format);
60 *** Testing printf() : basic functionality - using hexadecimal format ***
63 format
H A Dvsprintf_basic9.phpt2 Test vsprintf() function : basic functionality - hexadecimal format
5 /* Prototype : string vsprintf(string $format , array $args)
10 echo "*** Testing vsprintf() : basic functionality - using hexadecimal format ***\n";
12 // Initialising different format strings
13 $format = "format";
38 *** Testing vsprintf() : basic functionality - using hexadecimal format ***
H A Dvsprintf_basic8.phpt2 Test vsprintf() function : basic functionality - octal format
5 /* Prototype : string vsprintf(string $format , array $args)
10 echo "*** Testing vsprintf() : basic functionality - using octal format ***\n";
13 $format = "format";
28 *** Testing vsprintf() : basic functionality - using octal format ***
H A Dvsprintf_basic4.phpt2 Test vsprintf() function : basic functionality - bool format
5 /* Prototype : string vsprintf(string $format , array $args)
10 echo "*** Testing vsprintf() : basic functionality - using bool format ***\n";
13 $format = "format";
28 *** Testing vsprintf() : basic functionality - using bool format ***
H A Dvprintf_basic8.phpt2 Test vprintf() function : basic functionality - octal format
5 /* Prototype : string vprintf(string $format , array $args)
10 echo "*** Testing vprintf() : basic functionality - using octal format ***\n";
13 $format = "format";
36 *** Testing vprintf() : basic functionality - using octal format ***
H A Dvsprintf_basic5.phpt2 Test vsprintf() function : basic functionality - char format
5 /* Prototype : string vsprintf(string $format , array $args)
10 echo "*** Testing vsprintf() : basic functionality - using char format ***\n";
13 $format = "format";
28 *** Testing vsprintf() : basic functionality - using char format ***
H A Dvsprintf_basic6.phpt2 Test vsprintf() function : basic functionality - exponential format
5 /* Prototype : string vsprintf(string $format , array $args)
10 echo "*** Testing vsprintf() : basic functionality - using exponential format ***\n";
13 $format = "format";
28 *** Testing vsprintf() : basic functionality - using exponential format ***
H A Dvfprintf_basic2.phpt2 Test vfprintf() function : basic functionality - integer format
5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
11 * Testing vfprintf() : basic functionality - using integer format
14 echo "*** Testing vfprintf() : basic functionality - using integer format ***\n";
17 $format = "format";
47 *** Testing vfprintf() : basic functionality - using integer format ***
H A Dprintf_basic3.phpt2 Test printf() function : basic functionality - float format
5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
6 * Description: Produces output according to format .
10 echo "*** Testing printf() : basic functionality - using float format ***\n";
15 $format = "format";
28 $result = printf($format);
59 *** Testing printf() : basic functionality - using float format ***
62 format
H A Dvsprintf_variation15.phpt9 /* Prototype : string vsprintf(string format, array args)
16 * are passed to the '$format' and '$args' arguments of the function
30 // Arrays of unsigned values for the format defined in $format.
31 // Each sub array contains unsigned values which correspond to each format string in $format
40 // looping to test vsprintf() with different unsigned formats from the above $format array
43 foreach($formats as $format) {
45 var_dump( vsprintf($format, $args_array[$counter-1]) );
H A Dvsprintf_variation3.phpt5 /* Prototype : string vsprintf(string format, array args)
12 * the '$format' and '$args' arguments of the function
30 // Arrays of int values for the format defined in $format.
31 // Each sub array contains int values which correspond to each format string in $format
44 // looping to test vsprintf() with different int formats from the above $format array
47 foreach($formats as $format) {
49 var_dump( vsprintf($format, $args_array[$counter-1]) );
H A Dvprintf_variation15.phpt9 /* Prototype : string vprintf(string format, array args)
16 * are passed to the '$format' and '$args' arguments of the function
30 // Arrays of unsigned values for the format defined in $format.
31 // Each sub array contains unsigned values which correspond to each format string in $format
40 // looping to test vprintf() with different unsigned formats from the above $format array
43 foreach($formats as $format) {
45 $result = vprintf($format, $args_array[$counter-1]);
H A Dvprintf_variation15_64bit.phpt9 /* Prototype : string vprintf(string format, array args)
16 * are passed to the '$format' and '$args' arguments of the function
30 // Arrays of unsigned values for the format defined in $format.
31 // Each sub array contains unsigned values which correspond to each format string in $format
40 // looping to test vprintf() with different unsigned formats from the above $format array
43 foreach($formats as $format) {
45 $result = vprintf($format, $args_array[$counter-1]);
/PHP-5.5/ext/intl/dateformat/
H A Ddateformat_format_object.cpp64 **format = NULL; in PHP_FUNCTION() local
77 &object, &format, &locale_str, &locale_len) == FAILURE) { in PHP_FUNCTION()
85 if (format == NULL || Z_TYPE_PP(format) == IS_NULL) { in PHP_FUNCTION()
87 } else if (Z_TYPE_PP(format) == IS_ARRAY) { in PHP_FUNCTION()
88 HashTable *ht = Z_ARRVAL_PP(format); in PHP_FUNCTION()
117 } else if (Z_TYPE_PP(format) == IS_LONG) { in PHP_FUNCTION()
118 if (!valid_format(format)) { in PHP_FUNCTION()
126 convert_to_string_ex(format); in PHP_FUNCTION()
127 if (Z_STRLEN_PP(format) == 0) { in PHP_FUNCTION()
179 UnicodeString(Z_STRVAL_PP(format), Z_STRLEN_PP(format), in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/intl/tests/
H A Dbug48227.phpt2 Bug #48227 (NumberFormatter::format leaks memory)
9 var_dump($x->format(''));
10 var_dump($x->format(1));
11 var_dump($x->format(NULL));
12 var_dump($x->format($x));

Completed in 22 milliseconds

12345678910>>...32