/PHP-7.2/ext/standard/tests/strings/ |
H A D | printf_basic4.phpt | 2 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 D | printf_basic5.phpt | 2 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 D | printf_basic6.phpt | 2 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 D | sprintf_basic1.phpt | 2 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 D | sprintf_basic3.phpt | 2 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 D | printf_basic1.phpt | 2 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 D | printf_basic7.phpt | 2 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 D | printf_basic8.phpt | 2 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 D | printf_basic9.phpt | 2 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 D | vsprintf_basic9.phpt | 2 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 D | vsprintf_basic8.phpt | 2 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 D | vprintf_basic8.phpt | 2 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 D | vsprintf_basic4.phpt | 2 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 D | vsprintf_basic5.phpt | 2 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 D | vsprintf_basic6.phpt | 2 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 D | vfprintf_basic2.phpt | 2 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 D | vprintf_variation15.phpt | 9 /* 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 D | vprintf_variation15_64bit.phpt | 9 /* 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 D | vprintf_variation3.phpt | 5 /* Prototype : string vprintf(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 vprintf() with different int formats from the above $format array 47 foreach($formats as $format) { 49 $result = vprintf($format, $args_array[$counter-1]);
|
/PHP-7.2/ext/date/tests/ |
H A D | DateTime_format_variation1.phpt | 2 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 D | date_time_fractions.phpt | 8 $ms = date_create()->format('u'); 16 echo $dt->modify( "+1 day" )->format( "Y-m-d H:i:s.u" ), "\n"; 19 echo $dt->modify( "-3 months" )->format( "Y-m-d H:i:s.u" ), "\n"; 25 echo $dt->modify( "yesterday" )->format( "Y-m-d H:i:s.u" ), "\n"; 28 echo $dt->modify( "noon" )->format( "Y-m-d H:i:s.u" ), "\n"; 31 echo $dt->modify( "10 weekday" )->format( "Y-m-d H:i:s.u" ), "\n"; 45 echo $dt0->format( "Y-m-d H:i:s.u" ), "\n"; 46 echo $dt1->format( "Y-m-d H:i:s.u" ), "\n"; 47 echo $dt2->format( "Y-m-d H:i:s.u" ), "\n"; 48 echo $dt3->format( "Y-m-d H:i:s.u" ), "\n"; [all …]
|
H A D | gmstrftime_variation6.phpt | 2 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 D | strftime_variation6.phpt | 2 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 D | bug40743.phpt | 6 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-7.2/ext/intl/tests/ |
H A D | bug48227.phpt | 2 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));
|