How to swap values between two variables without using a
third variable?
Answer Posted / sriram
Hey guys, what about swaping variables contains string
values? All of your solutions will suck... Try this and swap
any datatype without third variable... Happy Sensible Coding..
$v = 'sriram';
$u = 'lakshmi';
$v .= $u;
$u = substr($v,0,(strlen($v) - strlen($u)));
$v = substr($v,(strlen($v) - strlen($u)-1), strlen($v));
echo 'u = ' . $u .'<br>';
echo 'v = ' . $v;
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out
what will we require to build project with the help of oracle
what is the BAM? where we can use it in BizTalk server?
Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number
What is the first message line that any language learning prints on the screen? and why?
If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this
what are the advantages of sap on other software ?
Which method protects back button to retrieve old value from previous page in Struts.
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
What is SAP TAO? · Which Version you are using? · What is the Latest Version in SAP TAO? · What are the Advantages in SAP TAO? · What are the Patches required for SAP TAO? · What is BPT? · Difference between BPT & SAP TAO? · Which Framework using for SAP TAO? · What is CBASE? · What is the SAP TAO Architecture? · What are the Prerequisites for SAP TAO? · SAP Solution Manager Mandatory for SAP TAO 1.0? · SAP Solution Manager Mandatory for SAP TAO 2.X? · What is UI Scanner? · What is Inspector? · How many ways to Create a components using TAO 1.0? · How many ways to Create a components using TAO 2.x? · Which service pack required for SAP TAO 2.7? · What is Import/Export? · What is Consolidate?
what is difference between object oriented programming structure and object oriented programming system?
Define distributed queries. can you explain me as soon as possible
in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?
what is dot net framework