Exponent v2.7.2

expLabels.php

Example using defaults for html output in Avery 8160 layout

$labels = new expLabels(array( // config 'layout' => "first_name last_name
address_1
address_2
town, postcode") );

// List the addresses to used on the labels // Notice how the array keys correspond to the 'layout' element above $addresses = array( array( 'first_name' => 'Bobbie', 'last_name' => 'Marley', 'address_1' => '132 Reggae Lane', 'address_2' => 'East Hunting', 'town' => 'Northampton', 'postcode' => 'NN2 5TR' ), array( 'first_name' => 'James', 'last_name' => 'Shack', 'address_1' => '23 Leapord Road', 'address_2' => 'Oaklingbury', 'town' => 'Cambridge', 'postcode' => 'CB4 7YT' ), );

// Output the labels to the screen $labels->output($addresses);

Interfaces, Classes, Traits and Enums

expLabels
Create Labels in HTML or Word .xml Format

Search results