Check the data (PHP)

This file does a check of the data in PHP. You can also check it with JavaScript.

NOTE: The dual-purpose data file causes the string <!-- // JS/PHP dual-purpose file 'price_data.js' included here -->to be output when it is parsed by PHP. If we wish to use the file before headers are sent, then that output must be sent to null. That is achieved by buffering - see the php source code for this page for an example of how that is done,

Data, extracted as an array dump...

Array
(
    [cats] => Array
        (
            [0] => columns:
            [1] => FreeDeliv
            [2] => UK
            [3] => EU
            [4] => WA
            [5] => SU
        )

    [columns:] => Array
        (
            [0] => region
            [1] => post_large
            [2] => handling
            [3] => post_small
            [4] => handling_small
            [5] => post_small_cap
            [6] => commercial_items
            [7] => comm_MOV
            [8] => comm_post_cap
        )

    [FreeDeliv] => Array
        (
            [0] => FreeDeliv
            [1] => 0
            [2] => 0
            [3] => 0
            [4] => 0
            [5] => 0
            [6] => 0
            [7] => 0
            [8] => 0
        )

    [UK] => Array
        (
            [0] => UK
            [1] => 1.00
            [2] => 4.00
            [3] => 1.00
            [4] => 1.50
            [5] => 4.00
            [6] => 5
            [7] => 10.00
            [8] => 4.00
        )

    [EU] => Array
        (
            [0] => EU
            [1] => 7.00
            [2] => 8.00
            [3] => 2.00
            [4] => 4.00
            [5] => 0
            [6] => 0
            [7] => 0
            [8] => 0
        )

    [WA] => Array
        (
            [0] => WA
            [1] => 8.00
            [2] => 14.00
            [3] => 2.00
            [4] => 4.00
            [5] => 0
            [6] => 0
            [7] => 0
            [8] => 0
        )

    [SU] => Array
        (
            [0] => SU
            [1] => 7.00
            [2] => 8.00
            [3] => 2.00
            [4] => 4.00
            [5] => 0
            [6] => 0
            [7] => 0
            [8] => 0
        )

)