arguments - PHP function with unlimited number of parameters -


How can I write an action that can accept an unlimited number of standards?

What trying to do is create a function within a class that wraps the following:

  $ stmt-> gt; Bind_param ('sssd', $ code, $ language, $ official, $ percent);  

All the above mentioned are good, but I do not think they will be suitable for your situation For

  $ stmt-> gt; Bind_param ('sssd', $ code, $ language, $ official, $ percent);  

If you want to wrap this function, you have to pass the original logic variable of the bind_param function to reference . I do not think func_get_args () gives you this, it gives you values ​​instead, so it will not be possible to use them to pass this original work. I am struggling with a similar problem when trying to expand mySkili_STMT and never got a satisfactory solution.

This is not really the answer to your question, I'm scared, just one of the warnings that other arguments can not work in the special application of the arbitrary number of your arguments.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -