字符串:
Connection-specific DNS Suffix . :, Description . . . . . . . . . . . : Marvell Yukon 88E8001/8003/8010 PCI Gigabit Ethernet Controller, Physical Address. . . . . . . . . : 00-16-E6-41-CD-2A, Dhcp Enabled. . . . . . . . . . . : Yes, Autoconfiguration Enabled . . . . : Yes, IP Address. . . . . . . . . . . . : 192.168.0.107, Subnet Mask . . . . . . . . . . . : 255.255.255.0, Default Gateway . . . . . . . . . : 192.168.0.1, DHCP Server . . . . . . . . . . . : 192.168.0.1, DNS Servers . . . . . . . . . . . : 192.168.0.1, Lease 我就要提取00-16-E6-41-CD-2A
这段文字
Connection-specific DNS Suffix . :, Description . . . . . . . . . . . : Marvell Yukon 88E8001/8003/8010 PCI Gigabit Ethernet Controller, Physical Address. . . . . . . . . : 00-16-E6-41-CD-2A, Dhcp Enabled. . . . . . . . . . . : Yes, Autoconfiguration Enabled . . . . : Yes, IP Address. . . . . . . . . . . . : 192.168.0.107, Subnet Mask . . . . . . . . . . . : 255.255.255.0, Default Gateway . . . . . . . . . : 192.168.0.1, DHCP Server . . . . . . . . . . . : 192.168.0.1, DNS Servers . . . . . . . . . . . : 192.168.0.1, Lease 我就要提取00-16-E6-41-CD-2A
这段文字
echo $r[0]; //00-16-E6-41-CD-2A
===========
每次都看到:)