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 / ramse

yes we can do this also.
But pass by reference allow in PHP5 not in PHP4.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What changes I have to do in php.ini file for file uploading?

1072


Which of the data type is compound datatype supported by PHP?

1007


How does php serialize work?

1035


Is php 5.6 secure?

993


What is difference between rest and http?

1007


Tell me how can we get the error when there is a problem to upload a file?

1000


What is the main difference between require() and include()?

970


Which function would you use to insert a record into a database in php?

1046


Is strcmp case sensitive?

964


Are objects passed by value or by reference?

988


What are the correct and the most two common way to start and finish a PHP block of code?

1066


What is $_session in php?

1006


I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable

1927


What does the expression exception::__tostring means?

1010


Which function will you use to create an array?

969