sqI edit


SUBMITTED BY: maloans

DATE: Feb. 2, 2018, 1:32 a.m.

FORMAT: Text only

SIZE: 165 Bytes

HITS: 604

  1. // [B]old
  2. $text = preg_replace('/\[B](.+?)\[\/B]/i', '<strong>$1</strong>',
  3. $text);
  4. // [I]talic
  5. $text = preg_replace('/\[I](.+?)\[\/I]/i', '<em>$1</em>', $text);

comments powered by Disqus