Mattigrate Posted October 28, 2010 Share Posted October 28, 2010 So basically I want to take this input "site:google.com" And record only the "google.com" part as a variable. Any idea how to do that? Link to comment https://forums.phpfreaks.com/topic/217058-record-part-of-input-to-variable/ Share on other sites More sharing options...
Anti-Moronic Posted October 28, 2010 Share Posted October 28, 2010 yaha, $str = "site:google.com"; $justdomain = str_replace('site:', '', $str); Link to comment https://forums.phpfreaks.com/topic/217058-record-part-of-input-to-variable/#findComment-1127339 Share on other sites More sharing options...
Mattigrate Posted October 28, 2010 Author Share Posted October 28, 2010 Thanks kindly! Link to comment https://forums.phpfreaks.com/topic/217058-record-part-of-input-to-variable/#findComment-1127340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.