jimlongo Posted November 11, 2012 Posted November 11, 2012 I started getting php errors after upgrading to php5.3.x because beanstream_webobject.php uses the deprecated split() function around line 73 foreach (split("&", $txResult) as $value) { $aryElement = split("=", $value); eval('$aryResult["' . $aryElement[0] . '"] = "' . $aryElement[1] . '";'); } Can I switch to explode or some other function here? Thanks.
MrPhil Posted November 12, 2012 Posted November 12, 2012 Yes, you could explode it instead, since it's a constant character: foreach (explode("&", $txResult) as $value) { $aryElement = explode("=", $value); If it was a regular expression (pattern), you'd have to use preg_split().
Recommended Posts
Archived
This topic is now archived and is closed to further replies.