Jump to content

jburelli

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jburelli's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. this is the entire function: Someone told me, use preg_match not eregi functions, but I dont know sintax. function temp_lock($source,$block) { eregi("<BLOCK:$block>(.*)</BLOCK:$block>", $source, $new_tpl); //$block = $new_tpl[1]; //$source = eregi_replace("<BLOCK:$block>(.*(</BLOCK:$block>))", "{block:$block}", $template); $output['tpl'] = $new_tpl[1]; $output['clean'] = $new_tpl[1]; $output['src'] = eregi_replace("<BLOCK:$block>(.*(</BLOCK:$block>))", "{block:$block}", $source); $output['add'] = ""; $output['done'] = ""; return $output; }
  2. Hi Guys!! how can I resolve this deprecated code line: eregi("<BLOCK:$block>(.*)</BLOCK:$block>", $source, $new_tpl); and this otherone: eregi_replace("<BLOCK:$block>(.*(</BLOCK:$block>))", "{block:$block}", $source); thanks, too much!!
×
×
  • 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.