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 is csrf token and how will you add csrf token in ajax?

920


What is csrf cookie?

874


What is htaccess? Why do we use this and where?

925


What is the difference between characters 34 and x34?

985


What is printf in php?

941


What is chrome logger?

927


What does $_ post mean in php?

1024


What is the use of header() function in PHP? What the Limitation of HEADER()?

995


Require_once(), require(), include(). What is difference between them?

944


What does isset() function?

913


What is == and === in php?

872


What is cookies php?

913


When to use inquire vs enquire?

934


What is a php class?

990


Is empty in php?

929