Home
last modified time | relevance | path

Searched refs:format (Results 76 – 100 of 858) sorted by relevance

12345678910>>...35

/PHP-7.2/ext/standard/tests/strings/
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_variation15_64bit.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 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 Dvprintf_basic4.phpt2 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 Dvprintf_basic5.phpt2 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 Dvprintf_basic6.phpt2 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 Dvsprintf_basic1.phpt2 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 Dvsprintf_basic7.phpt2 Test vsprintf() function : basic functionality - unsigned format
9 /* Prototype : string vsprintf(string $format , aaray $args)
14 echo "*** Testing vsprintf() : basic functionality - using unsigned format ***\n";
17 $format = "format";
32 *** Testing vsprintf() : basic functionality - using unsigned format ***
H A Dvsprintf_basic7_64bit.phpt2 Test vsprintf() function : basic functionality - unsigned format
9 /* Prototype : string vsprintf(string $format , aaray $args)
14 echo "*** Testing vsprintf() : basic functionality - using unsigned format ***\n";
17 $format = "format";
32 *** Testing vsprintf() : basic functionality - using unsigned format ***
H A Dvprintf_variation5.phpt5 /* 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 Dvsprintf_variation17.phpt5 /* 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 Dvsprintf_variation5.phpt5 /* 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 Dvprintf_basic9.phpt2 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 Dvprintf_basic1.phpt2 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 Dvprintf_basic7.phpt2 Test vprintf() function : basic functionality - unsigned format
9 /* Prototype : string vprintf(string $format , aaray $args)
14 echo "*** Testing vprintf() : basic functionality - using unsigned format ***\n";
17 $format = "format";
40 *** Testing vprintf() : basic functionality - using unsigned format ***
H A Dvprintf_basic7_64bit.phpt2 Test vprintf() function : basic functionality - unsigned format
9 /* Prototype : string vprintf(string $format , aaray $args)
14 echo "*** Testing vprintf() : basic functionality - using unsigned format ***\n";
17 $format = "format";
39 *** Testing vprintf() : basic functionality - using unsigned format ***
H A Dvsprintf_basic3.phpt2 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 Dsprintf_variation53.phpt2 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 Dvfprintf_variation15.phpt9 /* Prototype : int vfprintf ( resource $handle , 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
45 // looping to test vfprintf() with different unsigned formats from the above $format array
48 foreach($formats as $format) {
50 vfprintf($fp, $format, $args_array[$counter-1]);
H A Dvfprintf_variation15_64bit.phpt9 /* Prototype : int vfprintf ( resource $handle , 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
45 // looping to test vfprintf() with different unsigned formats from the above $format array
48 foreach($formats as $format) {
50 vfprintf($fp, $format, $args_array[$counter-1]);
/PHP-7.2/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_P(format) == IS_NULL) { in PHP_FUNCTION()
87 } else if (Z_TYPE_P(format) == IS_ARRAY) { in PHP_FUNCTION()
88 HashTable *ht = Z_ARRVAL_P(format); in PHP_FUNCTION()
130 } else if (Z_TYPE_P(format) == IS_LONG) { in PHP_FUNCTION()
131 if (!valid_format(format)) { in PHP_FUNCTION()
139 convert_to_string_ex(format); in PHP_FUNCTION()
140 if (Z_STRLEN_P(format) == 0) { in PHP_FUNCTION()
193 StringPiece sp(Z_STRVAL_P(format)); in PHP_FUNCTION()
[all …]
/PHP-7.2/ext/date/tests/
H A Dbug73426.phpt2 Bug #73426 (createFromFormat with 'z' format char results in incorrect time)
8 $format = 'Y H:i:s z';
9 var_dump(DateTime::createFromFormat($format, $date));
12 $format = 'z H:i:s Y';
13 var_dump(DateTime::createFromFormat($format, $date));
H A Didate_variation5.phpt2 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--
/PHP-7.2/Zend/
H A Dzend.h181 size_t (*printf_function)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
189 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap);
190 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap);
230 ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
232 ZEND_API zend_string *zend_vstrpprintf(size_t max_len, const char *format, va_list ap);
233 ZEND_API zend_string *zend_strpprintf(size_t max_len, const char *format, ...) ZEND_ATTRIBUTE_FORMA…
261 extern ZEND_API size_t (*zend_printf)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1,…
269 extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap);
270 extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap);
274 ZEND_API ZEND_COLD void zend_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf,…
[all …]

Completed in 114 milliseconds

12345678910>>...35