View Single Post
Old 06-30-2011, 07:07 AM  
thunder99
Confirmed User
 
thunder99's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: Budapest
Posts: 503
Quote:
Originally Posted by Soteko View Post
Code:
	

$sString = 'a:1:{s:10:"formfield1";s:17:"www.domain.com";}';
	
$sTemp = explode(":", $sString);
$iLastIndex = count($sTemp)-1;
	
$sDomain = str_replace( array('"', ';', '}'), "", $sTemp[$iLastIndex]);
echo $sDomain;
I ending up using something similar to this, thanks for the pointers Guys.
__________________
yeah, yeah
thunder99 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote