yp_order

(PHP 3 >= 3.0.7, PHP 4, PHP 5 <= 5.0.4)

yp_order -- Returns the order number for a map

说明

int yp_order ( string domain, string map )

Gets the order number for a map.

参数

domain

map

返回值

Returns the order number for a map or FALSE on error.

范例

例 1. Example for the NIS order

<?php
    $number
= yp_order($domain, $mapname);
    echo
"Order number for this map is: " . $number;
?>

参见

yp_get_default_domain()