R
Q. What will be the output of the following PHP code?
Code:
<?php declare(strict_types = 1);
function details(string $name, int $age){
echo "Name: $name, Age: $age";
}
details("Alvin", "21");
?>
function details(string $name, int $age){
echo "Name: $name, Age: $age";
}
details("Alvin", "21");
?>
- Correct Answer - Option(D)
- Views: 177
- Filed under category PHP
Discusssion
Login to discuss.