If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker😭 or Donate to help us ❤️ pay for the web hosting to keep the website running.
<?php
$no1 = 90;
$no2 = 100;
//define another variable then change values.
$temp = $no1;
echo "Before swap :<br/>no1=$no1, no2=$no2";
$no1 = $no2;
$no2 = $temp;
echo "<br/> After swap :<br/>no1=$no1, no2=$no2";
?>
Before swap : no1=90, no2=100 After swap : no1=100, no2=90
Hi ! I'm Rahul Kumar Rajput founder of learnhindituts.com. I'm a software developer having more than 4 years of experience. I love to talk about programming as well as writing technical tutorials and blogs that can help to others. I'm here to help you navigate the coding cosmos and turn your ideas into reality, keep coding, keep learning :)
Get connected with me. :) LinkedIn Twitter Instagram Facebook