/PHP-7.4/ext/standard/tests/strings/ |
H A D | printf_basic3.phpt | 2 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 D | vprintf_basic6.phpt | 2 Test vprintf() function : basic functionality - exponential format 5 /* Prototype : string vprintf(string $format , array $args) 10 echo "*** Testing vprintf() : basic functionality - using exponential format ***\n"; 13 $format = "format"; 36 *** Testing vprintf() : basic functionality - using exponential format ***
|
H A D | vsprintf_basic7.phpt | 2 Test vsprintf() function : basic functionality - unsigned format 9 /* Prototype : string vsprintf(string $format , array $args) 14 echo "*** Testing vsprintf() : basic functionality - using unsigned format ***\n"; 17 $format = "format"; 32 *** Testing vsprintf() : basic functionality - using unsigned format ***
|
H A D | vsprintf_basic7_64bit.phpt | 2 Test vsprintf() function : basic functionality - unsigned format 9 /* Prototype : string vsprintf(string $format , array $args) 14 echo "*** Testing vsprintf() : basic functionality - using unsigned format ***\n"; 17 $format = "format"; 32 *** Testing vsprintf() : basic functionality - using unsigned format ***
|
H A D | vprintf_basic4.phpt | 2 Test vprintf() function : basic functionality - bool format 5 /* Prototype : string vprintf(string $format , array $args) 10 echo "*** Testing vprintf() : basic functionality - using bool format ***\n"; 13 $format = "format"; 36 *** Testing vprintf() : basic functionality - using bool format ***
|
H A D | vprintf_basic5.phpt | 2 Test vprintf() function : basic functionality - char format 5 /* Prototype : string vprintf(string $format , array $args) 10 echo "*** Testing vprintf() : basic functionality - using char format ***\n"; 13 $format = "format"; 36 *** Testing vprintf() : basic functionality - using char format ***
|
H A D | vsprintf_basic1.phpt | 2 Test vsprintf() function : basic functionality - string format 5 /* Prototype : string vsprintf(string $format , array $args) 10 echo "*** Testing vsprintf() : basic functionality - using string format ***\n"; 13 $format = "format"; 29 *** Testing vsprintf() : basic functionality - using string format ***
|
H A D | vprintf_basic1.phpt | 2 Test vprintf() function : basic functionality - string format 5 /* Prototype : int vprintf(string $format , array $args) 10 echo "*** Testing vprintf() : basic functionality - using string format ***\n"; 13 $format = "format"; 35 *** Testing vprintf() : basic functionality - using string format ***
|
H A D | vprintf_basic7_64bit.phpt | 2 Test vprintf() function : basic functionality - unsigned format 9 /* Prototype : string vprintf(string $format , array $args) 14 echo "*** Testing vprintf() : basic functionality - using unsigned format ***\n"; 17 $format = "format"; 39 *** Testing vprintf() : basic functionality - using unsigned format ***
|
H A D | vprintf_basic7.phpt | 2 Test vprintf() function : basic functionality - unsigned format 9 /* Prototype : string vprintf(string $format , array $args) 14 echo "*** Testing vprintf() : basic functionality - using unsigned format ***\n"; 17 $format = "format"; 40 *** Testing vprintf() : basic functionality - using unsigned format ***
|
H A D | vsprintf_basic3.phpt | 2 Test vsprintf() function : basic functionality - float format 5 /* Prototype : string vsprintf(string $format , array $args) 10 echo "*** Testing vsprintf() : basic functionality - using float format ***\n"; 14 $format = "format"; 38 *** Testing vsprintf() : basic functionality - using float format ***
|
H A D | vprintf_basic9.phpt | 2 Test vprintf() function : basic functionality - hexadecimal format 5 /* Prototype : string vprintf(string $format , array $args) 10 echo "*** Testing vprintf() : basic functionality - using hexadecimal format ***\n"; 12 // Initialising different format strings 13 $format = "format"; 49 *** Testing vprintf() : basic functionality - using hexadecimal format ***
|
H A D | vsprintf_variation17.phpt | 5 /* Prototype : string vsprintf(string format, array args) 12 * are passed to the '$format' and '$args' arguments of the function 26 // Arrays of scientific values for the format defined in $format. 27 // Each sub array contains scientific values which correspond to each format string in $format 36 // looping to test vsprintf() with different scientific formats from the above $format array 39 foreach($formats as $format) { 41 var_dump( vsprintf($format, $args_array[$counter-1]) );
|
H A D | vsprintf_variation5.phpt | 5 /* Prototype : string vsprintf(string format, array args) 12 * the '$format' and '$args' arguments of the function 30 // Arrays of float values for the format defined in $format. 31 // Each sub array contains float values which correspond to each format string in $format 44 // looping to test vsprintf() with different float formats from the above $format array 47 foreach($formats as $format) { 49 var_dump( vsprintf($format, $args_array[$counter-1]) );
|
H A D | vprintf_variation5.phpt | 5 /* Prototype : string vprintf(string format, array args) 12 * the '$format' and '$args' arguments of the function 30 // Arrays of float values for the format defined in $format. 31 // Each sub array contains float values which correspond to each format string in $format 44 // looping to test vprintf() with different float formats from the above $format array 47 foreach($formats as $format) { 49 $result = vprintf($format, $args_array[$counter-1]);
|
H A D | sprintf_variation53.phpt | 2 Test sprintf() function : usage variations - with whitespaces in format strings 5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) 10 echo "*** Testing sprintf() : with white spaces in format strings ***\n"; 12 // initializing the format array 29 foreach($formats as $format) { 30 var_dump( sprintf($format, 1234) ); 36 *** Testing sprintf() : with white spaces in format strings ***
|
H A D | vfprintf_basic8.phpt | 2 Test vfprintf() function : basic functionality - octal format 5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args ) 10 echo "*** Testing vfprintf() : basic functionality - using octal format ***\n"; 13 $format = "format"; 42 *** Testing vfprintf() : basic functionality - using octal format ***
|
/PHP-7.4/ext/intl/dateformat/ |
H A D | dateformat_format_object.cpp | 70 *format = NULL; in PHP_FUNCTION() local 83 &object, &format, &locale_str, &locale_len) == FAILURE) { in PHP_FUNCTION() 91 if (format == NULL || Z_TYPE_P(format) == IS_NULL) { in PHP_FUNCTION() 93 } else if (Z_TYPE_P(format) == IS_ARRAY) { in PHP_FUNCTION() 94 HashTable *ht = Z_ARRVAL_P(format); in PHP_FUNCTION() 136 } else if (Z_TYPE_P(format) == IS_LONG) { in PHP_FUNCTION() 137 if (!valid_format(format)) { in PHP_FUNCTION() 145 if (!try_convert_to_string(format)) { in PHP_FUNCTION() 148 if (Z_STRLEN_P(format) == 0) { in PHP_FUNCTION() 201 StringPiece sp(Z_STRVAL_P(format)); in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/date/tests/ |
H A D | gmstrftime_variation11.phpt | 5 /* Prototype : string gmstrftime(string format [, int timestamp]) 18 echo "\n-- Testing gmstrftime() function with Abbreviated month name format %h --\n"; 19 $format = "%h"; 20 var_dump( gmstrftime($format) ); 21 var_dump( gmstrftime($format, $timestamp) ); 28 -- Testing gmstrftime() function with Abbreviated month name format %h --
|
H A D | strftime_variation11.phpt | 5 /* Prototype : string strftime(string format [, int timestamp]) 18 echo "\n-- Testing strftime() function with Abbreviated month name format %h --\n"; 19 $format = "%h"; 20 var_dump( strftime($format) ); 21 var_dump( strftime($format, $timestamp) ); 28 -- Testing strftime() function with Abbreviated month name format %h --
|
H A D | bug69089.phpt | 2 Bug #69089 (Add support for RFC3339 extended to DateTime::format) 11 var_dump($date->format(DateTime::RFC3339_EXTENDED)); 12 var_dump($date->format('u')); 13 var_dump($date->format('v'));
|
H A D | idate_variation5.phpt | 2 Test idate() function : usage variation - Passing supported Time format characters to format argume… 5 /* Prototype : int idate(string format [, int timestamp]) 20 '12 hour format' => 'h', 21 '24 hour format' => 'H', 42 --12 hour format-- 45 --24 hour format--
|
H A D | gmstrftime_variation17.phpt | 5 /* Prototype : string gmstrftime(string format [, int timestamp]) 18 echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n"; 19 $format = "%e"; 20 var_dump( gmstrftime($format) ); 21 var_dump( gmstrftime($format, $timestamp) ); 28 -- Testing gmstrftime() function with Day of the month as decimal single digit format --
|
/PHP-7.4/Zend/ |
H A D | zend.h | 190 size_t (*printf_function)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2); 198 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap); 199 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap); 237 ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap); 239 ZEND_API zend_string *zend_vstrpprintf(size_t max_len, const char *format, va_list ap); 244 ZEND_API size_t zend_spprintf_unchecked(char **message, size_t max_len, const char *format, ...); 245 ZEND_API zend_string *zend_strpprintf_unchecked(size_t max_len, const char *format, ...); 278 extern ZEND_API size_t (*zend_printf)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1,… 286 extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap); 287 extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap); [all …]
|
/PHP-7.4/ext/pgsql/tests/ |
H A D | bug71062.phpt | 17 $date_string_php_iso8601 = date_create('8 Dec 2015 5:38')->format(DateTime::ISO8601); 21 $date_string_modified_iso8601 = date_create('8 Dec 2015 5:38')->format($modified_format); 23 printf("trying format %s \n", DateTime::ISO8601); 26 printf("trying format %s \n", $modified_format); 36 trying format Y-m-d\TH:i:sO 37 trying format Y-m-d H:i:sO
|