Showing posts with label test. Show all posts
Showing posts with label test. Show all posts

28 Jan 2014

Odesk php 5 exam question and answer

Question: You have two strings, which you want to concatenate.

$str1 = ‘Have a ‘;
$str2 = ‘Nice Day’;
The fastest way would be:

a. $str1.Concat($str2);
b. $str1.$str2;
c. “$str1$str2”;
d. None of the above