Jump to content

Shantam_Bhavsar

New Members
  • Posts

    2
  • Joined

  • Last visited

Shantam_Bhavsar's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you David, As per your explanation i changed line no. 5 to $test = preg_replace("(.*\[test=(.+?)\](.+?)\[\/test\].*)is","$1",$data); and it worked.
  2. <?php $data='123 [test=abc]cba[/test] 321'; $test = preg_replace("(\[test=(.+?)\](.+?)\[\/test\])is","$1",$data); echo $test; ?> I expect the above code to return abc but instead of returning abc it returns 123 abc 321 Please tell me where am i wrong.
×
×
  • 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.