#ip->in(block: cidr) → bool
True when the address is in the block, such as '10.0.0.0/8'.
| Parameter | Takes |
|---|---|
block required | cidr |
Example
<let name="x" type="ip" value="'192.168.0.12'" />
<echo>{ $x->in('192.168.0.0/16') }</echo>$x: ip = '192.168.0.12'
echo $x->in('192.168.0.0/16')