PHP decoct() Function
Definition and Usage
Ang decoct() function ay nagbabagong decimal sa octal.
Syntax
decoct(dec_number)
Parameter | Description |
---|---|
dec_number | Mandatoryo. Tumutukoy sa decimal number na dapat ipataliwa. |
Paliwanag
Binibigay ng string na naglalaman ng dec_number Ang wakas na wakas ng octal representation ng parameter. Ang pinakamalaking numero na maaaring ipataliwa ay ang decimal na 4294967295, ang resulta ay "37777777777".
Sample
<?php echo decoct("30"); echo decoct("10"); echo decoct("1587"); echo decoct("70"); ?>
Output:
36 12 3063 106