How to check a string contains substring in php?

The function will check a string contains substring, the string to be checked may contain underscores.

How to convert camelCase to underscore in php?

Use PHP to convert the camelCase string into an underscore-separated or other character separated.