I copy & paste football games from Betfair e.g. "Bournemouth v Tottenham" and this is stored in a MySQL database. However, when I try:
preg_split('/\s+/', $row['match']);
As suggested on here previously it doesn't split on the first space (my ultimate goal would be something like'/\s[v]\s/'). When I manually overwrite the field in the database as " v " it then splits it correctly. What could it be treating this character as that appears as a space both in the browser and in PHPMyAdmin but doesn't parse as one? I've tried but no luck. An example string is:
Barcelona v Man City - Wednesday 19:45
with this parsing: http://pasteall.org/pic/show.php?id=107841 It doesn't split string until the "Man City" space rather than the " v ". The first one works as I manually replaced the problem chars with spaces in the database