PHP Skill Test

$a .= "a"; $a .= "b"; $a .= "c";
1. What is the value of $a?
$a = 4; for ($b = 0; $b <= $a; $b++) { $c++; }
2. What is the value of $c?
$a[] = "a"; $a[] = "b"; $a[] = "c";
3. What is the value of $a[2]?
$a = 200.5; $b = 2005; $c = "2005";
4. Which of the above variables' type is integer?
$
$a = '1'; $b = &$a; $b = "2$a";
5. What is the value of $a?
$a = "abc"; $b = substr($a, 0, -1);
6. What is the value of $b?
$a = true; $b = "true"; $c[] = "true";
7. Which of the above variables' type is string?
$
$a = "b"; $b = "a";
8. What is the value of ${$b}?
$a = array("a","b","c"); foreach ($a as $b){ $c++; }
9. What is the value of $c?
$a = "0"; $b = "0"; if ($a != "1" && $b == "1" || $a != "0" || $b != "1" ){ $d = "0"; }else{ $d = "1"; }
10. What is the value of $d?
$a = "post_processed_string"; $b = array("post_", "_"); $c = array("", " "); $d = ucwords(str_replace($b,$c,$a));
11. What is the value of $d?
$a = "<tt>some</tt><b>html</b>"; preg_match("/<\w?>(\w*?)<\/\w?>/",$a,$b);
12. What is the value of $b[1]?