PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

yp_get_default_domain> <yp_errno
Last updated: Fri, 22 Aug 2008

view this page in

yp_first

(PHP 4, PHP 5 <= 5.0.5)

yp_firstdevuelve la primera clave emparejada con el nombrado mapa.

Descripción

array yp_first ( string $dominio , string $mapa )

yp_first(nombre de la funcion)() Retorna la primera clave de valor pareada del mapa nombrado en el dominio, de otra manera FALSO.

Example #1 Ejemplo para el primer NIS

<?$entryyp_first($dominio,passwd.byname");
             if (!$entry){"
echo yp_errno().":".yp_err_string();}
            
$key=key($entry);
      echo
"Primera entrada en este mapa fue ".$key ."Y valor".$entry[$key];?>

Ver tambien: yp_get_default_domain yp_errno y yp_err_string



add a note add a note User Contributed Notes
yp_first
There are no user contributed notes for this page.

yp_get_default_domain> <yp_errno
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites