Remove a section of a string before a period
Posted: Wed Jan 27, 2010 9:33 am
I'm not quite sure if this requires a str_replace() function or a regular expression.
I am querying a value that will always have a period in it. IE (test.test1)
I need to get the contents to the right of the period so in that case: test1 becomes the new string..
I looked at substr_replace which may do what I need to do but it uses an absolute value for the string characters/index which isn't ideal.
I am querying a value that will always have a period in it. IE (test.test1)
I need to get the contents to the right of the period so in that case: test1 becomes the new string..
I looked at substr_replace which may do what I need to do but it uses an absolute value for the string characters/index which isn't ideal.