How to write a php function

I want to know how I can write a php function in c (e.g. strtoupper). if there is any tutorial please enter it here.

thanks

+3
source share
3 answers

To write a function in C that can be used with PHP, you have to write an extension.

There is not much information about what is available, unfortunately ...

However, while browsing my bookmarks, here are the links I found:

, , PHP ( Google ); , , , ( , , )

, , : -)

+14

SWIG, Wrapper Generator:

SWIG is a software development tool that combines C and C ++ programs with various high-level programming languages. SWIG is used with various types of languages, including common scripting languages ​​such as Perl, PHP, Python, Tcl, and Ruby.
0
source

Source: https://habr.com/ru/post/1718794/


All Articles