/PHP-7.4/ext/date/tests/ |
H A D | gmstrftime_variation18.phpt | 11 /* Prototype : string gmstrftime(string format [, int timestamp]) 24 echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n"; 25 $format = "%e"; 26 var_dump( gmstrftime($format) ); 27 var_dump( gmstrftime($format, $timestamp) ); 34 -- Testing gmstrftime() function with Day of the month as decimal single digit format --
|
H A D | strftime_variation18.phpt | 11 /* Prototype : string strftime(string format [, int timestamp]) 24 echo "\n-- Testing strftime() function with Day of the month as decimal single digit format --\n"; 25 $format = "%e"; 26 var_dump( strftime($format) ); 27 var_dump( strftime($format, $timestamp) ); 33 -- Testing strftime() function with Day of the month as decimal single digit format --
|
H A D | date_add_basic.phpt | 18 $format = 'Y-m-d H:i:s'; 27 var_dump( $d->format($format) ); 31 var_dump( $d->format($format) );
|
H A D | date_sub_basic.phpt | 18 $format = 'Y-m-d H:i:s'; 27 var_dump( $d->format($format) ); 31 var_dump( $d->format($format) );
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | vfprintf_basic1.phpt | 2 Test vfprintf() function : basic functionality - string format 5 /* Prototype : int vfprintf ( resource $handle , string $format , array $args ) 10 echo "*** Testing vfprintf() : basic functionality - using string format ***\n"; 13 $format = "format"; 42 *** Testing vfprintf() : basic functionality - using string format ***
|
H A D | vprintf_variation11.phpt | 9 /* Prototype : string vprintf(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 50 foreach($formats as $format) { 52 $result = vprintf($format, $args_array[$counter-1]);
|
H A D | vprintf_variation11_64bit.phpt | 9 /* Prototype : string vprintf(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 50 foreach($formats as $format) { 52 $result = vprintf($format, $args_array[$counter-1]);
|
H A D | vsprintf_variation11.phpt | 9 /* Prototype : string vsprintf(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 50 foreach($formats as $format) { 52 var_dump( vsprintf($format, $args_array[$counter-1]) );
|
H A D | vsprintf_variation11_64bit.phpt | 9 /* Prototype : string vsprintf(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 50 foreach($formats as $format) { 52 var_dump( vsprintf($format, $args_array[$counter-1]) );
|
H A D | vsprintf_variation9.phpt | 5 /* Prototype : string vsprintf(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 43 // looping to test vsprintf() with different char formats from the above $format array 46 foreach($formats as $format) { 48 var_dump( vsprintf($format, $args_array[$counter-1]) );
|
H A D | pack64_32.phpt | 22 Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 25 Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 28 Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 31 Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 34 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 37 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 40 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 43 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d
|
H A D | vprintf_variation9.phpt | 5 /* Prototype : string vprintf(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 43 // looping to test vprintf() with different char formats from the above $format array 46 foreach($formats as $format) { 48 $result = vprintf($format, $args_array[$counter-1]);
|
H A D | vsprintf_variation19.phpt | 2 Test vsprintf() function : usage variations - with whitespaces in format strings 9 /* Prototype : string vsprintf(string $format , array $args) 14 echo "*** Testing vsprintf() : with white spaces in format strings ***\n"; 16 // initializing the format array 48 foreach($formats as $format) { 50 var_dump( vsprintf($format, $args_array[$counter-1]) ); 57 *** Testing vsprintf() : with white spaces in format strings ***
|
H A D | vsprintf_variation19_64bit.phpt | 2 Test vsprintf() function : usage variations - with whitespaces in format strings 9 /* Prototype : string vsprintf(string $format , array $args) 14 echo "*** Testing vsprintf() : with white spaces in format strings ***\n"; 16 // initializing the format array 48 foreach($formats as $format) { 50 var_dump( vsprintf($format, $args_array[$counter-1]) ); 57 *** Testing vsprintf() : with white spaces in format strings ***
|
H A D | sscanf_basic5.phpt | 2 Test sscanf() function : basic functionality - exponential 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 exponential format ***\n"; 18 // extract details using short format 25 // extract details using long format 35 *** Testing sscanf() : basic functionality -using exponential format ***
|
H A D | vsprintf_variation7.phpt | 5 /* 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 D | vfprintf_variation13.phpt | 9 /* 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 D | vfprintf_variation13_64bit.phpt | 9 /* 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 D | vprintf_variation7.phpt | 5 /* 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 D | vfprintf_variation11.phpt | 9 /* 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 D | vfprintf_variation11_64bit.phpt | 9 /* 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 D | vfprintf_variation9.phpt | 5 /* 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 D | vfprintf_variation19.phpt | 2 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 D | vfprintf_variation19_64bit.phpt | 2 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 ***
|
/PHP-7.4/main/ |
H A D | snprintf.h | 79 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) ZEND_ATTRIBUTE_FORMAT(pri… 80 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap); 83 PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap); 84 PHPAPI int ap_php_asprintf(char **buf, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3); 87 PHPAPI char * php_conv_fp(char format, double num, 151 char format, char *buf_end, size_t *len);
|