kevinkhan Posted June 29, 2010 Share Posted June 29, 2010 Hi guys.. What does this string mean? '/top\.location\.replace\(\"http\:\/\/www\.bebo\.com\/SignIn\.jsp"\)/i' i found it in this piece of code if (preg_match('/top\.location\.replace\(\"http\:\/\/www\.bebo\.com\/SignIn\.jsp"\)/i', $data, $matches)) return false; Thanks Link to comment https://forums.phpfreaks.com/topic/206156-what-does-this-string-mean/ Share on other sites More sharing options...
cags Posted June 29, 2010 Share Posted June 29, 2010 It's a regular expression designed to search $data for the string... top.location.replace("http://www.bebo.com/SignIn.jsp") ...case insensitively. As it doesn't actually use any special regex syntax it may have just as well have used... stripos($data, 'top.location.replace("http://www.bebo.com/SignIn.jsp")'); Link to comment https://forums.phpfreaks.com/topic/206156-what-does-this-string-mean/#findComment-1078635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.