Eg:
GetLogestString("bae","afaaa","aaa") should return 5
GetLogestString("baeedfefe","afaaaa","aaa","bb") should return 9
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
array_map(),strlen(),max()andfunc_get_args():Edit: In PHP 5.2 you have to store the result of
func_get_args()in a temporary variable. In PHP 5.3 you can do this: