answersLogoWhite

0

This is the answer:

<html>

<body>

<?php

$number1=20;

$number2=30;

$temp=$number2;

$number1 = $temp;

$number2 = $temp-10;

echo $number1;

echo $number2;

?>

</body>

</html>

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

Add your answer:

Earn +20 pts
Q: How do you swap two numbers using PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp