The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have a textarea where the admin can enter a string.
If the admin types "[7]" into the text area I'd like to use a code to remove the brackets so the result would be "7". I could do a simple str_replace if I knew the value was going to be "[7]" but there's no guarantee it will be. |
|
#2
|
||||
|
||||
|
Try preg_replace() instead.
PHP Code:
|
|
#3
|
|||
|
|||
|
I have to leave soon so I'll try it later today.
|
|
#4
|
|||
|
|||
|
Thanks, it works.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|