Searched refs:base_convert (Results 1 – 8 of 8) sorted by relevance
/PHP-8.0/ext/standard/tests/math/ |
H A D | base_convert_improvements.phpt | 5 echo base_convert('FF', 16, 10) . "\n"; 6 echo base_convert('20', 8, 10) . "\n"; 7 echo base_convert('0xFf', 16, 10) . "\n"; 8 echo base_convert('0FF', 16, 10) . "\n"; 12 echo base_convert("0o7" , 8, 10) . "\n"; 18 echo base_convert('fg', 16, 10); 19 echo base_convert('f 0xff ', 16, 10); 20 echo base_convert('1xff ', 16, 10); 21 echo base_convert(chr(0), 16, 10); 22 echo base_convert("0o7" , 9, 10); [all …]
|
H A D | base_convert_error.phpt | 2 Test base_convert() function : error conditions - incorrect input 5 echo "*** Testing base_convert() : error conditions ***\n"; 13 base_convert(1234, 1, 10); 18 base_convert(1234, 10, 37); 24 base_convert(new classA(), 8, 10); 31 *** Testing base_convert() : error conditions *** 32 base_convert(): Argument #2 ($from_base) must be between 2 and 36 (inclusive) 33 base_convert(): Argument #3 ($to_base) must be between 2 and 36 (inclusive) 34 base_convert(): Argument #1 ($num) must be of type string, classA given
|
H A D | base_convert_variation1.phpt | 2 Test base_convert() function : usage variations - different data types as $number argument 5 echo "*** Testing base_convert() : usage variations ***\n"; 65 // loop through each element of $inputs to check the behaviour of base_convert() 70 var_dump(base_convert($input, 10, 8)); 79 *** Testing base_convert() : usage variations *** 148 base_convert(): Argument #1 ($num) must be of type string, array given 172 base_convert(): Argument #1 ($num) must be of type string, resource given
|
H A D | base_convert_basic.phpt | 2 Test base_convert() - basic function tests base_convert() 25 $res = base_convert($values[$i],$frombase[$f],$tobase[$t]);
|
/PHP-8.0/Zend/tests/ |
H A D | bug70124.phpt | 7 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$f("test"))],chr(48)); 16 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),a::y("test"))],chr(48)); 24 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$a->y("test"))],chr(48)); 30 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),\bar\y("test"))],chr(48)); 36 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),y("test"))],chr(48));
|
/PHP-8.0/ext/standard/ |
H A D | math.c | 978 PHP_FUNCTION(base_convert) in PHP_FUNCTION() argument
|
H A D | basic_functions.stub.php | 1107 function base_convert(string $num, int $from_base, int $to_base): string {} function
|
H A D | basic_functions_arginfo.h | 2686 ZEND_FUNCTION(base_convert); 3326 ZEND_FE(base_convert, arginfo_base_convert)
|
Completed in 51 milliseconds