[Fwd: Re: [PHP] Bind function parameters with create_function ('currying')]

2007-09-05 Thread Richard Heyes
-- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support --- Begin Message --- Of course, my apologies. I've simplified it from the actual code and also removed the string parameter as the object one is

Re: [PHP] Bind function parameters with create_function ('currying')

2007-09-04 Thread Richard Heyes
I have a function which is my callback for preg_replace_callback - and it needs to be able to access a string and an object outside of itself. When I call create_function I can insert the string, but without serializing the object I can't figure out how to make it available to the function without

[PHP] Bind function parameters with create_function ('currying')

2007-09-04 Thread Rob Desbois
Hi all, I have a function which is my callback for preg_replace_callback - and it needs to be able to access a string and an object outside of itself. When I call create_function I can insert the string, but without serializing the object I can't figure out how to make it available to the function