php tutorial,s -> print usage in php

 eleven.php



<?php
// Using echo
// $var1 = "Hello ";
// $var2 = "World";
// echo $var1 . $var2; // Outputs: Hello World

// Using print in an expression
$var3 = "Hello ";
$var4 = "World";
$result = print($var3 . $var4); // Outputs: Hello World and assigns 1 to $result
echo "\nResult: " . $result; // Outputs: Result: 1
?>

=

No comments:

Post a Comment

Event listening in react

 How we can listen to som eevents some envents fire like click or automatically user enters into input button , that is event on word type i...