Is there anyway so that i can make my dll and put my functions in dll
and then access them so it protects my function source code.

as far as i know, not directly but you can do the same using C/C++.
While it is possible to compile PHP into DLLs (Phalanger
can do that), there is no guarantee that those DLLs
will be usable by PHP. In fact, PHP has a rather
strict set of requirements as to how extension libraries
should be written. DLLs compiled by Phalanger, in contrast,
are meant to be used by .NET languages, not PHP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.