PHP Manual
Prev |  | Next

# yp_order

yp_order -- Returns the order number for a map.

## Description

`int yp_order`(string domain, string map);

yp_order() returns the order number for a map or FALSE.

Example 1. Example for the NIS order
    <?php
        $number = yp_order($domain,$mapname);

        if(!$number) {
            echo yp_errno() . ": " . yp_err_string();
        }

        echo "Order number for this map is: " . $order;
    ?>

See also: yp_get_default_domain yp_errno and yp_err_string

Prev | Home | Next
yp_get_default_domain | Up | yp_master