Hello people,
This should be easy, I'm just not finding the answer I need.
Say I have a string with some constants and a string with some variables that I want to strip. I'm looking for a PHP function or set of functions that will help medo the following:
$string = "THIS IS CONSTANT this part is variable THIS PART IS CONSTANT";
So, that being my string, I'd like to pull the "variable" part out of my string.
How would this be done? Any coding examples are appreciated!
Eventually, when all is said and done I'm looking str_replace() the entire string to get rid of it, but this isn't so easy as you see that the middle of my string is "variable" every time I load it.
Any help is appreciated!
Thanks!