contains Php If Variable Contains This function returns true 1 if the variable is of type string otherwise it returns falsenothing. T…