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
Explain how you can update memcached when you make changes to php?
how to track no of users logged in?
What are some new features introduced in php7?
Does PHP 5 support exceptions? State Whether True or False?
What is query string php?
What library is used for pdf in php?
What is php explain how php works?
What do you mean by having php as whitespace insensitive?
Is empty check in php?
Does php 7 support mysql?
What are the new features available in php 7?
What is php string function?
Why is php used for web development?
Does php support inheritance?
How long will it take to learn php?