The PHP decoct() function converts a decimal number to an octal number.

				
					<?php
echo decoct('7');
?>
				
			

Syntax

				
					decoct(number)