Hi
I am reaching the end of upgrading 2.2 RC2a from php 5.2 to 5.3 and have a problem sorting one of the "split" functions in a shipping module. The line of code is
list($t_postcode, $local) = split('[/ -]', $postcode);
Where the $t_postcode value might be TN12 8QT and the line of code is spliting the postcode so that it becomes TN12.
I have tried changing it to
list($t_postcode, $local) = explode('[/ -]', $postcode);
and
list($t_postcode, $local) = preg_split('/[/ -]/', $postcode);
But neither of these examples splits the post code
I would apprciate any help to fix this problem
Thanks ... Dennis