it depends
php is based on C++/C and it is written in C so most of the function are alike. if you are talking about using pure C++ code in your PHP App then it is not possible unless you want to compile your c++ code as a module to the PHP inteself and then using your function throw PHP. this will require recompiling php everytime you change anything in your cpp code.