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
What does trim () do in javascript?
How do I check environment variables?
Tell me what is the use of "ksort" in php?
What is laravel php?
Where can I learn php?
What is http get and post?
How do you measure variables?
What is php and its features?
When should you use a stored procedure?
Are php sessions cookies?
What is php destruct?
What is the use of strpos in php?
Is php object oriented?
What is stdclass in php?
What is mysql_fetch_row?