Lines Matching refs:toString
131 Both IP addresses and ranges have a `toString` method that you can use to retrieve a textual repres…
134 echo \IPLib\Factory::addressFromString('127.0.0.1')->toString();
136 echo \IPLib\Factory::addressFromString('127.000.000.001')->toString();
138 echo \IPLib\Factory::addressFromString('::1')->toString();
140 echo \IPLib\Factory::addressFromString('0:0::1')->toString();
142 echo \IPLib\Factory::rangeFromString('0:0::1/64')->toString();
146 …esentation of the addresses. In this case, simply use a `true` parameter for the `toString` method:
149 echo \IPLib\Factory::addressFromString('::')->toString(true);
151 echo \IPLib\Factory::addressFromString('::1')->toString(true);
153 echo \IPLib\Factory::addressFromString('fff::')->toString(true);
155 echo \IPLib\Factory::addressFromString('::0:0')->toString(true);
157 echo \IPLib\Factory::addressFromString('1:2:3:4:5:6:7:8')->toString(true);
159 echo \IPLib\Factory::rangeFromString('0:0::1/64')->toString();
238 echo \IPLib\Factory::rangeFromString('::/64')->asPattern()->toString();
241 echo \IPLib\Factory::rangeFromString('1:2::*:*')->asSubnet()->toString();
244 echo \IPLib\Factory::rangeFromString('192.168.0.*')->asSubnet()->toString();
247 echo \IPLib\Factory::rangeFromString('10.0.0.0/8')->asPattern()->toString();
256 echo \IPLib\Factory::rangeFromString('192.168.0.*')->getSubnetMask()->toString();
259 echo \IPLib\Factory::rangeFromString('192.168.0.12/30')->getSubnetMask()->toString();