$string = '$12.50 - This is my string';
This is my string & I want remove section from $ to first space using php string function. I have tried substr but it returns me string after $.
Output should be as below:
- This is my string
In some cases there is no $ sign ain first place of string so in those cases "This" is removed from string.