Exchange Value Without Using Third Value

How to Expose and Route to a Resource?
How to Expose and Route to a Resource?

आज इस आर्टिकल में हम आपको Exchange Value Without Using Third Value के बारे में बताएंगे।

Program:- Exchange Value Without Using Third Value, How to swap two numbers without using a temporary variable, Write a C program to swap two numbers without using 3rd variable, How to swap two numbers without using temporary variable?, How to swap without a third variable?

Solution – Exchange Value Without Using Third Value

<?php
$a = 'Hindi';
$b = 'Alerts';
list($a, $b) = array($b, &b);
//now $a is Alerts or $b is Hindi
?>

इसे भी पढ़े – Calculate & Print the Factorial of a Number using PHP?

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *