"<?php\nfunction containsNumber($string) {\n    if (preg_match(/\\\\d/, $string)) {\n        return true;\n    }\n    return false;\n}\n?>"
Create a PHP script to detect whether a string contains a number.?