View Single Post
  #12  
Old 01-17-2005, 05:02 PM
 
NuAlpha NuAlpha is offline
 

X-Adept
  
Join Date: Aug 2003
Location: US
Posts: 598
 

Default

I am wondering why certain ereg() statements have been changed to become preg() statements that use the S pattern modifier.

For instance: $insert_string = preg_replace("/, $/Ss", ")", $insert_string);

This is a very simple pattern to match, so why tell PHP to spend the extra time analysing it??
__________________
X-Cart Pro 4.5.5 Platinum
X-Payments 1.0.6
PHP 5.3.14
MySQL 5.1.68
Apache 2.2.23
Reply With Quote