Lines Matching refs:a

79 To parse a subnet (CIDR) range:
86 To parse a pattern (asterisk notation) range:
93 To parse an andress as a range:
100 To parse a range in any format:
109 ### Retrive a range from its boundaries
118 ### Retrive the boundaries of a range
131 Both IP addresses and ranges have a `toString` method that you can use to retrieve a textual repres…
146 …e full (expanded) representation of the addresses. In this case, simply use a `true` parameter for…
164 ### Check if an address is contained in a range
166 …es offer a `contains` method, and all the IP address types offer a `matches` method: you can call …
180 ### Check if a range contains another range
182 All the range types offer a `containsRange` method: you can call them to check if an address range …
193 If you want to know if an address is within a private network, or if it's a public IP, or whatever …
222 Please remark that if a range spans across multiple range types, you'll get NULL as the range type:
234 …2.168.*.*`) and in CIDR/subnet format (eg. `192.168.0.0/16`), and it offers a way to convert betwe…
262 ### Using a database
264 … offers a great feature: you can store address ranges in a database table, and check if an address…
266 To save a range, you need to store the address type (for IPv4 it's `4`, for IPv6 it's `6`), as well…
274 Let's assume that you saved the type in a field called `addressType`, and the range boundaries in t…
276 When you want to check if an address is within a stored range, simply use the `getComparableString`…
278 Here's a sample code:
283 * - $pdo is a PDO instance
284 * - $range is a range object