Jump to content


Corporate Sponsors


Latest News: (loading..)

dennis@dhlhomefurnishings.

Member Since 02 Sep 2008
Offline Last Active Yesterday, 16:07
-----

Topics I've Started

Shipping Module PHP Issue

22 May 2012, 14:06

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