please help me, thank u!!
please help! about preg_replace_callback
Moderator: General Moderators
please help! about preg_replace_callback
can i transmit other parameters to the function which is called for preg_replace_callback???
please help me, thank u!!

please help me, thank u!!
- prometheuzz
- Forum Regular
- Posts: 779
- Joined: Fri Apr 04, 2008 5:51 am
Re: please help! about preg_replace_callback
Try it.zorro wrote:can i transmit other parameters to the function which is called for preg_replace_callback???
please help me, thank u!!![]()
![]()
Re: please help! about preg_replace_callback
prometheuzz wrote:Try it.zorro wrote:can i transmit other parameters to the function which is called for preg_replace_callback???
please help me, thank u!!![]()
![]()
i have tried many times
i think it can not
but i want to define it is really true??
- prometheuzz
- Forum Regular
- Posts: 779
- Joined: Fri Apr 04, 2008 5:51 am
Re: please help! about preg_replace_callback
You can access global variables [which are outside your call back function]. And there's this thing called "currying" (a.k.a. delayed argument binding) which you might use.zorro wrote:...
i have tried many times
i think it can not
but i want to define it is really true??
See: http://php.net/manual/en/function.preg- ... llback.php
What you could also do is explain here on the forum what problem you are trying to solve. It is my experience that quite often some one asking for help is determined to solve his/her problem in a certain way, while there is some easier (or better) way to solve it.
Good luck.