php代码:<?php class Index { private $index = array("192.168.100.1","74.125.19.106"); function xml($resolve) { foreach ($this->index as $val) { print $val; if($resolve) { print "(".gethostbyaddr($val).")"; } print "\n"; } } } $xml = simplexml_load_file("settings.xml"); $ml = new Index(); $ml->xml( (string)$xml->resolvedomains);XML代码:<?xml version="1.0" encoding="UTF-8"?><note><settings><resolvedomains>false</resolvedomains></settings></note>
1 回答
- 1 回答
- 0 关注
- 1110 浏览
添加回答
举报
0/150
提交
取消