How to realize Octal to Decimal in php
This article introduces php how to achieve octal to decimal, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Php octal to decimal methods: 1, create a PHP example file; 2, through the "octdec (string $octal_string): number" syntax to achieve octal conversion to decimal can be.
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
How to convert octal to decimal in php?
Octdec
(PHP 4, PHP 5, PHP 7, PHP 8)
Octdec-convert octal to decimal
Description
Octdec (string $octal_string): number
Returns the decimal equivalent of the octal number represented by the octal_string parameter.
Parameter octal_string: octal string to be converted
Return value
Decimal representation of octal_string
Update log
Version description
4.1.0 this function can handle integer large numbers, in which case it returns the float type.
Example
Example # 1 octdec () example
The above routine outputs:
What language is 6345php php, a nested acronym, is the abbreviation of English Hypertext preprocessing language (PHP:Hypertext Preprocessor). PHP is a kind of HTML embedded language. PHP is somewhat similar to Microsoft's ASP. It is a scripting language that embeds HTML documents on the server. The style of the language is similar to C language, and now it is widely used by many website programmers.
On how to achieve octal to decimal php to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.