Javatpoint Logo
Javatpoint Logo

PHP octdec() Function

The octdec() function is mathematical PHP function, which is used to convert an octal number to a decimal number.

Syntax:

Parameter Description Required/Optional
octal_string octal string to convert Required

Example 1

Output:

Your number is :36
By using 'octdec()' function your value is:30

Example 2

Output:

Your number is :36
By using 'octdec()' function your value is:30

Example 3

Output:

Your number is :3063
By using 'octdec()' function your value is:1587

Example 4

Output:

Your number is :106
By using 'octdec()' function your value is:70

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA