Home
last modified time | relevance | path

Searched refs:format (Results 26 – 50 of 681) sorted by relevance

12345678910>>...28

/PHP-5.3/ext/date/tests/
H A Dgmdate_variation6.phpt2 Test gmdate() function : usage variation - Passing Month format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
17 echo "\n-- Testing gmdate() function with full textual representation of month format --\n";
21 echo "\n-- Testing gmdate() function with numeric representation of month format --\n";
25 echo "\n-- Testing gmdate() function with short textual representation of month format --\n";
33 echo "\n-- Testing gmdate() function with number of days in a month format --\n";
42 -- Testing gmdate() function with full textual representation of month format --
46 -- Testing gmdate() function with numeric representation of month format --
50 -- Testing gmdate() function with short textual representation of month format --
54 -- Testing gmdate() function with numeric representation of month without leading zeros format --
[all …]
H A Dgmdate_variation11.phpt2 Test gmdate() function : usage variation - Passing Full Date/Time format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
17 echo "\n-- Testing gmdate() function with ISO 8601 date format --\n";
21 echo "\n-- Testing gmdate() function with RFC 2822 date format --\n";
25 echo "\n-- Testing gmdate() function with seconds since Unix Epoch format --\n";
34 -- Testing gmdate() function with ISO 8601 date format --
38 -- Testing gmdate() function with RFC 2822 date format --
42 -- Testing gmdate() function with seconds since Unix Epoch format --
H A Dgmdate_variation9.phpt2 Test gmdate() function : usage variation - Passing Time format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
22 '12-hour format without leading zeros' => 'g',
23 '24-hour format without leading zeros' => 'G',
24 '12-hour format with leading zeros' => 'h',
25 '24-hour format with leading zeros' => 'H',
54 --12-hour format without leading zeros--
58 --24-hour format without leading zeros--
62 --12-hour format with leading zeros--
66 --24-hour format with leading zeros--
H A DDateTime_format_variation1.phpt2 Test DateTime::format() function : usage variation - Passing unexpected values to first argument $f…
5 /* Prototype : public string DateTime::format ( string $format )
6 * Description: Returns date formatted according to given format
11 echo "*** Testing DateTime::format() : usage variation - unexpected values to first argument \$for…
100 foreach($inputs as $variation =>$format) {
102 var_dump( $object->format($format) );
111 *** Testing DateTime::format() : usage variation - unexpected values to first argument $format***
136 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d
141 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d
146 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d
[all …]
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 --
/PHP-5.3/ext/standard/tests/strings/
H A Dsprintf_basic2.phpt2 Test sprintf() function : basic functionality - integer format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using integer format ***\n";
14 $format = "format";
23 var_dump( sprintf($format) );
37 *** Testing sprintf() : basic functionality - using integer format ***
38 string(6) "format"
H A Dsprintf_variation52.phpt2 Test sprintf() function : usage variations - typical format strings
10 echo "*** Testing sprintf() : with typical format strings ***\n";
16 echo"\n-- Testing for '%%%.2f' as the format parameter --\n";
19 echo"\n-- Testing for '%%' as the format parameter --\n";
28 echo"\n-- Testing for '%X' as the format parameter --\n";
31 echo"\n-- Testing for multiple format parameters --\n";
40 *** Testing sprintf() : with typical format strings ***
42 -- Testing for '%%%.2f' as the format parameter --
45 -- Testing for '%%' as the format parameter --
56 -- Testing for '%X' as the format parameter --
[all …]
H A Dsprintf_basic4.phpt2 Test sprintf() function : basic functionality - bool format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using bool format ***\n";
14 $format = "format";
23 var_dump( sprintf($format) );
37 *** Testing sprintf() : basic functionality - using bool format ***
38 string(6) "format"
H A Dsprintf_basic5.phpt2 Test sprintf() function : basic functionality - char format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using char format ***\n";
14 $format = "format";
23 var_dump( sprintf($format) );
37 *** Testing sprintf() : basic functionality - using char format ***
38 string(6) "format"
H A Dsprintf_basic6.phpt2 Test sprintf() function : basic functionality - exponential format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using exponential format ***\n";
13 $format = "format";
22 var_dump( sprintf($format) );
36 *** Testing sprintf() : basic functionality - using exponential format ***
37 string(6) "format"
H A Dvsprintf_basic2.phpt2 Test vsprintf() function : basic functionality - integer format
5 /* Prototype : string vsprintf(string $format , array $args)
11 * Testing vsprintf() : basic functionality - using integer format
14 echo "*** Testing vsprintf() : basic functionality - using integer format ***\n";
17 $format = "format";
32 *** Testing vsprintf() : basic functionality - using integer format ***
H A Dsprintf_basic9.phpt2 Test sprintf() function : basic functionality - hexadecimal format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using hexadecimal format ***\n";
14 // Initialising different format strings
15 $format = "format";
29 var_dump( sprintf($format) );
46 *** Testing sprintf() : basic functionality - using hexadecimal format ***
47 string(6) "format"
H A Dsprintf_basic7.phpt2 Test sprintf() function : basic functionality - unsigned format
11 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
16 echo "*** Testing sprintf() : basic functionality - using unsigned format ***\n";
20 $format = "format";
29 var_dump( sprintf($format) );
43 *** Testing sprintf() : basic functionality - using unsigned format ***
44 string(6) "format"
H A Dsprintf_basic7_64bit.phpt2 Test sprintf() function : basic functionality - unsigned format
7 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
12 echo "*** Testing sprintf() : basic functionality - using unsigned format ***\n";
16 $format = "format";
25 var_dump( sprintf($format) );
39 *** Testing sprintf() : basic functionality - using unsigned format ***
40 string(6) "format"
H A Dsprintf_basic8.phpt2 Test sprintf() function : basic functionality - octal format
11 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
16 echo "*** Testing sprintf() : basic functionality - using octal format ***\n";
19 $format = "format";
28 var_dump( sprintf($format) );
42 *** Testing sprintf() : basic functionality - using octal format ***
43 string(6) "format"
H A Dsprintf_basic8_64bit.phpt2 Test sprintf() function : basic functionality - octal format
7 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
12 echo "*** Testing sprintf() : basic functionality - using octal format ***\n";
15 $format = "format";
24 var_dump( sprintf($format) );
38 *** Testing sprintf() : basic functionality - using octal format ***
39 string(6) "format"
H A Dprintf_basic2.phpt2 Test printf() function : basic functionality - integer format
5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
6 * Description: Produces output according to format .
10 echo "*** Testing printf() : basic functionality - using integer format ***\n";
14 $format = "format";
23 $result = printf($format);
45 *** Testing printf() : basic functionality - using integer format ***
48 format
H A Dprintf_basic4.phpt2 Test printf() function : basic functionality - bool format
5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
6 * Description: Produces output according to format .
10 echo "*** Testing printf() : basic functionality - using bool format ***\n";
14 $format = "format";
23 $result = printf($format);
44 *** Testing printf() : basic functionality - using bool format ***
47 format
H A Dprintf_basic5.phpt2 Test printf() function : basic functionality - char format
5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
6 * Description: Produces output according to format .
10 echo "*** Testing printf() : basic functionality - using char format ***\n";
14 $format = "format";
23 $result = printf($format);
44 *** Testing printf() : basic functionality - using char format ***
47 format
H A Dprintf_basic6.phpt2 Test printf() function : basic functionality - exponential format
5 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
6 * Description: Produces output according to format .
10 echo "*** Testing printf() : basic functionality - using exponential format ***\n";
13 $format = "format";
22 $result = printf($format);
43 *** Testing printf() : basic functionality - using exponential format ***
46 format
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_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

Completed in 21 milliseconds

12345678910>>...28