Advertisement
Jet_Francis_Podaca

SW No. 1 - PHP Variable

Mar 6th, 2023
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2. //SW No.1 - PHP Variable
  3. //Jet Francis Podaca - 3E
  4.  
  5. $firstname = "Jet Francis ";
  6. $lastname = "Podaca";
  7. $fullname = $firstname . $lastname;
  8. echo $fullname;
  9.  
  10.  
  11. $x = 10;
  12. $y = 7;
  13. $y++;
  14. $x--;
  15. $z = $x + $y;
  16. echo "\nThe sum of variable x and y is $z";
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement