How can I cut a string from the whois
command with PHP on CentOS Linux?
I just want to cut from Domain Name:
line to the >>>Last update...<<<
line.
My code:
<?php
$output = shell_exec('whois facebook.com');
$result = preg_split('/\n\n/', trim($output));
var_dump($result);
?>