PHP

How to demonstrate the use of printf() function in PHP | PHP program

How to demonstrate the use of printf() function in PHP | PHP program

How to demonstrate the use of printf() function in PHP | PHP program

 We will use the printf() function just like C programming language for formatted output.

<?php

    
    $A = 10;
    $B = 20;
    
    $C = $A + $B;
    printf("Sum is: %d",$C);
?>
TutorialsLink Curator

This is an official account managed by the team TutorialsLink Community