Announcement

Collapse
No announcement yet.

Vb-style "replacements"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Chen
    replied
    PHP Code:
    $formattedText str_replace('{replacementvariable}''#000000'$text); 
    You can also use arrays with str_replace(), check out the PHP docs for more info.

    Leave a comment:


  • Gamefreak
    replied
    Thanks for the help anyways.

    Leave a comment:


  • Mark Hensler
    replied
    I'm not familiar with vB coding, so I can't comment on that. But..

    eregi() is slower than preg_replace()

    and even faster is str_replace()

    Leave a comment:


  • Gamefreak
    started a topic Vb-style "replacements"

    Vb-style "replacements"

    I am making a template-based web site, and I would like to know how vbulletin replaces the replacements so quickly. I can use "eregi_replace()", but it takes a while. Can anyone help me?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X