Question: Which command will extract the domain suffix ("com") from the string `$string = "https://cat-bounce.com";`?
- `sub($string, -3)`
- `substr($string, -3)`
- `substr($string, 3)`
- `$string.substr(-3)`
Answer: The correct answer of the above question is Option B:`substr($string, -3)`