Convert Decimal Number to Octal String using PHP

decoct function

<?php

$decimalNumber = 40;
$octalString = decoct($decimalNumber);

echo $octalString;

Leave a Comment

Cancel reply

Your email address will not be published.