Q. What will be the output?
Code:
$a = '5abc'; echo (int)$a;
β
Correct Answer: (A)
5
Explanation: Integer cast extracts numeric prefix.
$a = '5abc'; echo (int)$a;
Explanation: Integer cast extracts numeric prefix.