Jump to content

kwpreds

New Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kwpreds

  • Rank
    Newbie
  1. If both lines look correct, I can try again. Thoughts? I made an error on one of the two lines used. These are the two lines. $html = preg_replace_callback(‘/\{DATE\s+(.*?)\}/’,create_function(‘$matches’, ‘return date($matches[1]);’),$html ); $html = preg_replace_callback(‘/\{DATE\s+(.*?)\}/’, function($matches) { return date($matches[1]); },$html );
  2. I will go on the server error log and copy and paste the error.
  3. I have the following line of code in my program $html = preg_replace_callback(‘/\{DATE\s+(.*?)\}/’,create_function(‘$matches’, ‘return date($matches[1]);’),$html ); I am getting a warning about it being deprecated. I have tried the following two lines separately and get an error with both. $html = preg_replace_callback(‘/\{DATE\s+(.*?)\}/’, function($matches) { return date($matches[1]); },$html ); $html = preg_replace_callback(‘/\{DATE\s+(.*?)\}/’, function($matches) { return date($matches[1]); },$html ); Can anyone help me convert from preg_replace to preg_replace_ca
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.