Function __global->base_convert
Definitions
sources_custom/phpstub.php
- Convert a number between arbitrary bases (string representations).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $number | string | No | No | required parameter | N/A | N/A | The string representation number to convert |
| $frombase | integer | No | No | required parameter | N/A | N/A | From base |
| $tobase | integer | No | No | required parameter | N/A | N/A | To base |
Returns
- New base representation
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert a number between arbitrary bases (string representations).
*
* @param string $number The string representation number to convert
* @param integer $frombase From base
* @param integer $tobase To base
* @return string New base representation
*/
function base_convert(string $number, int $frombase, int $tobase) : string
* Convert a number between arbitrary bases (string representations).
*
* @param string $number The string representation number to convert
* @param integer $frombase From base
* @param integer $tobase To base
* @return string New base representation
*/
function base_convert(string $number, int $frombase, int $tobase) : string

