Piotr Synowiec
Piotr Synowiec
~1 min read

Categories

Tags

  • Replacement of eregi
       // from
       eregi('patern', $string, $matches);
       // to
       preg_match('/pattern/i', $string);
         
       // preg_match("%s{$regex}%i", $string);
    
  • Replacement of split
      // from
      split(":", $records);
      // to 
      preg_split("/:/", $records)