diff --git a/Example3.0.vcf b/Example3.0.vcf
index 7715b21..d0ee600 100644
--- a/Example3.0.vcf
+++ b/Example3.0.vcf
@@ -8,7 +8,8 @@ PHOTO;VALUE=URL;TYPE=GIF:http://upload.wikimedia.org/wikipedia/commons/thumb/a/a
TEL;TYPE=WORK,VOICE:(111) 555-1212
TEL;TYPE=HOME,VOICE:(404) 555-1212
TEL;TYPE=HOME,TYPE=VOICE:(404) 555-1213
-ADR;TYPE=WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America
+ADR;TYPE=WORK:;extended;street 1;city;state;zip;country
+ADR;TYPE=WORK:;appartement 1;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;TYPE=WORK:100 Waters Edge\nBaytown, LA 30314\nUnited States of America
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;TYPE=HOME:42 Plantation St.\nBaytown, LA 30314\nUnited States of America
@@ -33,4 +34,4 @@ AGENT:BEGIN:VCARD
REV:20080424T195243Z
END:VCARD
REV:20080424T195243Z
-END:VCARD
\ No newline at end of file
+END:VCARD
diff --git a/test.php b/test.php
index 7b2ae9b..71015e6 100644
--- a/test.php
+++ b/test.php
@@ -1,4 +1,4 @@
-
+
@@ -40,13 +40,13 @@ function OutputvCard(vCard $vCard)
{
foreach ($vCard -> PHOTO as $Photo)
{
- if ($Photo['Encoding'] == 'b')
+ if ($Photo['encoding'] == 'b')
{
- echo '
';
+ echo '
';
}
else
{
- echo '
';
+ echo '
';
}
/*
@@ -69,14 +69,14 @@ function OutputvCard(vCard $vCard)
foreach ($vCard -> N as $Name)
{
- echo 'Name: '.$Name['FirstName'].' '.$Name['LastName'].'
';
+ echo 'Name: '.$Name['firstname'].' '.$Name['lastname'].'
';
}
foreach ($vCard -> ORG as $Organization)
{
- echo 'Organization: '.$Organization['Name'].
- ($Organization['Unit1'] || $Organization['Unit2'] ?
- ' ('.implode(', ', array($Organization['Unit1'], $Organization['Unit2'])).')' :
+ echo 'Organization: '.$Organization['name'].
+ ($Organization['unit1'] || $Organization['unit2'] ?
+ ' ('.implode(', ', array($Organization['unit1'], $Organization['unit2'])).')' :
''
).'
';
}
@@ -92,7 +92,7 @@ function OutputvCard(vCard $vCard)
}
else
{
- echo $Tel['Value'].' ('.implode(', ', $Tel['Type']).')
';
+ echo $Tel['value'].' ('.implode(', ', $Tel['type']).')
';
}
}
echo '';
@@ -109,7 +109,7 @@ function OutputvCard(vCard $vCard)
}
else
{
- echo $Email['Value'].' ('.implode(', ', $Email['Type']).')
';
+ echo $Email['value'].' ('.implode(', ', $Email['type']).')
';
}
}
echo '';
@@ -126,7 +126,7 @@ function OutputvCard(vCard $vCard)
}
else
{
- echo $URL['Value'].'
';
+ echo $URL['value'].'
';
}
}
echo '';
@@ -143,7 +143,7 @@ function OutputvCard(vCard $vCard)
}
else
{
- echo $IMPP['Value'].'
';
+ echo $IMPP['value'].'
';
}
}
echo '';
@@ -153,14 +153,14 @@ function OutputvCard(vCard $vCard)
{
foreach ($vCard -> ADR as $Address)
{
- echo '
Address ('.implode(', ', $Address['Type']).')
';
- echo 'Street address: '.($Address['StreetAddress'] ? $Address['StreetAddress'] : '-').'
'.
- 'PO Box: '.($Address['POBox'] ? $Address['POBox'] : '-').'
'.
- 'Extended address: '.($Address['ExtendedAddress'] ? $Address['ExtendedAddress'] : '-').'
'.
- 'Locality: '.($Address['Locality'] ? $Address['Locality'] : '-').'
'.
- 'Region: '.($Address['Region'] ? $Address['Region'] : '-').'
'.
- 'ZIP/Post code: '.($Address['PostalCode'] ? $Address['PostalCode'] : '-').'
'.
- 'Country: '.($Address['Country'] ? $Address['Country'] : '-').'';
+ echo 'Address ('.implode(', ', $Address['type']).')
';
+ echo 'Street address: '.($Address['streetaddress'] ? $Address['streetaddress'] : '-').'
'.
+ 'PO Box: '.($Address['pobox'] ? $Address['pobox'] : '-').'
'.
+ 'Extended address: '.($Address['extendedaddress'] ? $Address['extendedaddress'] : '-').'
'.
+ 'Locality: '.($Address['locality'] ? $Address['locality'] : '-').'
'.
+ 'Region: '.($Address['region'] ? $Address['region'] : '-').'
'.
+ 'ZIP/Post code: '.($Address['postalcode'] ? $Address['postalcode'] : '-').'
'.
+ 'Country: '.($Address['country'] ? $Address['country'] : '-').'';
}
echo '';
}
@@ -213,4 +213,4 @@ function OutputvCard(vCard $vCard)
}
?>
-
\ No newline at end of file
+