underscore($str)
Parameters: |
|
---|---|
Returns: |
String containing underscores instead of spaces |
Return type: |
string |
Takes multiple words separated by spaces and underscores them. Example:
1 | echo underscore( 'my dog spot' ); // Prints 'my_dog_spot' |
Please login to continue.