Start using Strict typing in PHP
What is strict typing in PHP?
Published in
3 min readDec 12, 2022
Before explaining about Strict typing in PHP, we going to execute the below programs.
<?php
function sum($a, $b)
{
return $a + $b;
}
echo sum(1, 2.5); // output 3.5
?>
The above program is used to find the sum of two given numbers. So the output is 3.5