Comments (5)
It looks to me like you were able to get the phone numbers, addresses and email addresses just fine. What problem are you having?
from php-ews.
I just want to get the phone mumber as a var and not as un object
to have an "echo" like "teltest"
from php-ews.
You know how to use PHP, right? You should be able to just get the value from the object...
from php-ews.
I find the way. I'm still disturbed by the ->get_()
here my code:
getContacts(); echo($contacts[2]->getItemId()->getId()).""; echo($contacts[2]->getGivenName())."
"; echo($contacts[2]->getSurname())."
"; echo($contacts[2]->getjobTitle())."
"; echo($contacts[2]->getCompanyName())."
"; echo($contacts[2]->getLastModifiedTime())."
"; echo($contacts[2]->getPhysicalAddresses()->Entry->getStreet())."
"; echo($contacts[2]->getPhysicalAddresses()->Entry->getPostalCode())."
"; echo($contacts[2]->getPhysicalAddresses()->Entry->getCity())."
"; echo($contacts[2]->getPhysicalAddresses()->Entry->getState())."
"; echo($contacts[2]->getPhysicalAddresses()->Entry->getcountryOrRegion())."
"; echo($contacts[2]->getPhoneNumbers()->Entry[0]->get_())."
"; echo($contacts[2]->getPhoneNumbers()->Entry[1]->get_() )."
"; echo($contacts[2]->getPhoneNumbers()->Entry[2]->get_() )."
"; echo($contacts[2]->getEmailAddresses()->Entry->get_())."
"; ?>
here the result:
A_DEEZ4T_*****_DlERi1EDFAAD_xG9V_TAvWT_VRAArfeAA==
prenomtest
nomtest
fonctiontest
societetest
2016-07-08T07:35:26Z
ruetest
cptest
villetest
deptest
paystest
faxtest
teltest
porttest
[email protected]
from php-ews.
You can replace the get_()
by casting to string. So you can either do
$contacts[2]->getPhoneNumbers()->Entry[2]->__toString()
Or
echo ((string) $contacts[2]->getPhoneNumbers()->Entry[2]);
from php-ews.
Related Issues (20)
- Upgrade from jamesiarmes -> garethp php-ews HOT 1
- Create a contact
- internetMessageHeaders HOT 1
- BUG FreeBusyResponse array HOT 1
- toRecipients getting null values for inplace archive mails
- Update Mail Item -> Categorize Email HOT 1
- PHP 8.2 - Deprecated dynamic properties HOT 5
- Oauth is not working with Exchange 2013
- Issue with using toRecipients property in EWS restriction HOT 2
- Daylight Savings
- How to get medias appointment
- Update contact with ExtendedProperty
- Exceptions
- Set a calendar event with custom identifier, so that I can (later on) GET an event by the same identifier HOT 3
- Change "busy" status for event. HOT 2
- Checking if an item exists (by $itemId and $changeKey) results in FATAL ERROR if the object is not found - How to handle this? HOT 1
- Also delete recurring events when master event is deleted? HOT 1
- getLegacyFreeBusyStatus() does not return WorkingElsewhere HOT 1
- Authentication error after Exchange Extended Protection was enabled HOT 2
- Add Kerberos support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ews.