Page 1 of 1

Fetch the value from a single array element

Posted: Wed Jan 03, 2007 2:12 am
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

Posted: Wed Jan 03, 2007 3:17 am
by onion2k