Jump to content

Returning multiple values from a function.


dmccabe

Recommended Posts

I am just playing with my first function and want to use it to return information about the logged in user from our ldap server.

 

I have all the ldap stuff working, but want to ask if it is possible to return multiple values from a function?

 

so something like:

 

function ldapvals($username,$password) {
code stuff here

return $memberof;
return $profilepath;
return $fullname;
}

is that possible?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.