Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

1. Write a function to swap two values ?
$a = 10;
$b = 20;
echo $a, $b;
swap(); // If u want u can pass parameters
echo $a, $b; // It should print 20 , 10

Answer Posted / ajay

I checked the answer posted by Sunil. This answer is
correct,the only mistake he did that the program print the
output together as 1020,2010,not like this
10
20


20
10

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better get or post method?

886


What is the use of preg_match in php?

957


What is a stored procedure in mysql?

1045


What advance thing in php7?

911


How do http requests work?

926


What is the use of final class in php?

898


What is a base url?

900


What is the function file_get_contents() usefull for?

943


Is facebook still written in php?

937


Tell me how is it possible to know the number of rows returned in result set?

1032


Is php secure?

927


What is the role of php?

909


Which function would you use to merge two arrays in php?

936


What are the different types of php variables?

1026


What is Apache's configuration file typically called?

1069