Jump to content
The Uniform Server Community

point3d

Member
  • Content Count

    6
  • Joined

  • Last visited

Posts posted by point3d


  1. Almost finished the fix for php 5.3

    But stuck with this "Easy-to-Read" code :(

     

      $REP_UNDSCR="&| ";
     $REP_SPACE="\?|%|'|\"|'|%|/|\||"|\*|#|\^|{|}|;|!|:|~|`|<|>|<|>|,|\\|\(|\)";
     $ADDITIONAL_VAL = ereg_replace($REP_UNDSCR,'_',$ADDITIONAL_VAL);
     $ADDITIONAL_VAL = ereg_replace($REP_SPACE,'',$ADDITIONAL_VAL);

     

    Someone can help to convert this to preg_replace

×
×
  • Create New...