replace_all question
hi again xD i came this time with one question
is it bad for my plugin to use "this stock" like 3 times in a function ? PHP Code:
|
Re: replace_all question
If you need to use your custom function 3 times inside the same function then you are likely doing something wrong unless you are doing it on three different players. You should show your whole code so we can give you the best advice.
|
Re: replace_all question
thanks, that helped.
and yes i use it on 3 different players. |
Re: replace_all question
Quote:
Can you show your code? Attach your plugin as an attachment. |
Re: replace_all question
well i modified it and now it looks like this:
PHP Code:
|
Re: replace_all question
It will probably be much more efficient to use this.
Also, I didn't think a non-ascii character was allowed in URLs. Are you sure that actually works? |
Re: replace_all question
yes i`m sure :) i tested it.
thanks again but i think i`ll stay to replace_all i think its solved by now. LE: @that encode method, i'll give it a try to see with my own eyes. |
Re: replace_all question
Quote:
Also, your question implied you were asking about efficiency and hence why I suggested the encode URL function. |
| All times are GMT -4. The time now is 15:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.