Fetch the value from a single array element

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vamsi_j
Forum Newbie
Posts: 5
Joined: Tue Jan 02, 2007 6:49 am

Fetch the value from a single array element

Post by vamsi_j »

I have used the below function to get the email addresses from the NIS.
I'm the values in a single array element.So please let me know how to get that from an array

yp_cat(yp_get_default_domain(),"mail.aliases");

Array ( [xcsverk] => ramana.kodumuri@xcs.com [xcssrta] => sravanthi.tadepalli@xcs.com [xcssram] => sriram.j@xcs.com)

So how should i get the values for a particular user for example xcssram.

Vamsi
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Post Reply