User's Manual

l complex – At least one of each: uppercase letter, lowercase letter, digit, and symbol
NwaSmsIsValidPhoneNumber
NwaSmsIsValidPhoneNumber($phone_number)
Validates a phone number supplied in E.164 international dialing format, including country code.
l Any spaces and non-alphanumeric characters are removed.
l If the first character is a plus sign (+), the phone number is assumed to be in E.164 format already and the
plus sign is removed; otherwise, if the SMS service handler national prefix is set and the phone number
starts with that prefix, then the prefix is replaced with the country code.
l The phone number must contain no fewer than 5 and no more than 15 digits.
l The phone number is validated for a valid country code prefix.
l If all the foregoing conditions are met, the validator returns TRUE; otherwise, the validator returns FALSE.
NwaStrongPassword
NwaStrongPassword($len)
Generate strong passwords of $len characters in length.
A strong password may contain uppercase letters, lowercase letters, digits and certain symbols. The strong
password does not contain commonly-confused characters such as O” and 0” (capital O and zero), I” and l”
(capital I and lowercase L), 2” and “Z” (two and capital Z), or 8” and B” (eight and capital B).
NwaVLookup
NwaVLookup($value, $table, $column_index, $range_lookup = true, $value_column = 0, $cmp_fn
= null)
Table lookup function, similar to the Excel function VLOOKUP(). This function searches for a value in the first
column of a table and returns a value in the same row from another column in the table. This function
supports the values described in the table below.
Option Description
$value
The value to be searched for
$table
A 2D array of data to search; for example, a data table returned by NwaCsvCache()
or NwaParseCsv()
$column_index
The desired index of the data
$range_lookup
Specifies whether to find an exact or approximate match.
If true (default), assumes the table is sorted and returns either an exact match, or the
match from the row with the next largest value that is less than $value. If false, only
an exact match is returned; NULL is returned on no match
value_column
Specifies the column index in the table that contains the values; the default is 0; in
other words, the first column.
$cmp_fn
Specifies a comparison function to use for values; if null, the default is used (simple
equality operator ==, or the == and > operators if using binary search).
The comparison function should take 2 arguments and return a value < 0, == 0, > 0
depending on the sort ordering of the arguments.
Table 119: NwaVLookup Options
Dell Networking W-ClearPass Guest 6.4 | User Guide Reference | 503