Home
last modified time | relevance | path

Searched refs:multiplier (Results 1 – 3 of 3) sorted by relevance

/PHP-7.0/ext/standard/tests/strings/
H A Dstr_repeat.phpt7 /* Prototype: string str_repeat ( string $input, int $multiplier );
8 Description: Returns input repeated multiplier times. multiplier has to be
9 greater than or equal to 0. If the multiplier is set to 0, the function
28 /* variations in string and multiplier as an integer */
37 /* variations in multiplier as well as string to be repeated. Same variant
38 values are used as string to be repeated as well as multiplier */
42 foreach ( $variations as $multiplier ) {
43 echo "-- after repeating '$multiplier' times is => ";
44 var_dump( str_repeat($input, $multiplier) );
60 var_dump( str_repeat($input[0], -1) ); // Invalid arg for multiplier
[all …]
/PHP-7.0/ext/date/lib/
H A Dparse_date.re174 int multiplier;
658 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break;
659 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break;
660 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break;
661 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break;
662 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break;
663 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break;
669 s->time->relative.weekday = relunit->multiplier;
676 s->time->relative.special.type = relunit->multiplier;
1569 s->time->relative.weekday = relunit->multiplier;
[all …]
H A Dparse_date.c176 int multiplier; member
660 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break; in timelib_set_relative()
661 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break; in timelib_set_relative()
662 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break; in timelib_set_relative()
663 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break; in timelib_set_relative()
664 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break; in timelib_set_relative()
665 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break; in timelib_set_relative()
671 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative()
678 s->time->relative.special.type = relunit->multiplier; in timelib_set_relative()
3534 s->time->relative.weekday = relunit->multiplier; in scan()
[all …]

Completed in 41 milliseconds