Hello...once again...:rolleyes:...I have a little nagging issue...
Let's say I have this:
$foo1="Some text : some more text";
If I want to use str_split() to split the text in half at the colon into an array variable, I would use this:
$split_string = str_split($foo1, strpos($foo1, ":") + 1);
But the problem is that I want to split the text at the very first character that isn't numeric or alpha...instead of being specific to a colon.
Now I've tried a regular expression but I'm not hitting it for some reason.
$split_string = str_split($foo1, strpos($foo1, "[^A-Za-z0-9]") + 1);
..this feel like it should work but it doesn't..?..any suggestions?