harmor19
10-10-2006, 08:42 AM
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.
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.