<?php
$ret="Updated Date: 07-feb-2014 Creation Date: 07-feb-2014 Expiration Date: 07-feb-2015 >>> Last update of whois database: Tue, 30 Sep 2014 06:37:52 UTC <<< NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring registrar";
$str=explode("Creation Date:",$ret); echo rtrim($str[1],"Expiration");
?>
this is my php code, i used rtrim but it returns
07-feb-2014 Expiration Date: 07-feb-2015 >>> Last update of whois database: Tue, 30 Sep 2014 06:37:52 UTC <<< NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring regis
but i need 07-feb-2014
as output, what can i do for this.