jammesz Posted November 8, 2007 Share Posted November 8, 2007 I was wondering if theres a way to have php functions in c++. I only know basic c++ so i dont know if there is anything like this out there. but in my opinion php manipulates strings better, and easier, and this would save a lot of trouble having to do it in c++ (as in c++ it requires more code and effort). Any help would be good. Link to comment https://forums.phpfreaks.com/topic/76497-php-functions-in-c/ Share on other sites More sharing options...
trq Posted November 8, 2007 Share Posted November 8, 2007 Do you meen you want php's functionality available in C++? I wouldn't say its impossible, but I should imagine you'd need to do it yourself. PHP is written in C, you can download the source and see if its of any use to you. Link to comment https://forums.phpfreaks.com/topic/76497-php-functions-in-c/#findComment-387494 Share on other sites More sharing options...
jammesz Posted November 8, 2007 Author Share Posted November 8, 2007 yea thats wat i mean. i just wanted to know if someone else has done this, otherwise i think i might have to download the src. Link to comment https://forums.phpfreaks.com/topic/76497-php-functions-in-c/#findComment-387534 Share on other sites More sharing options...
trq Posted November 8, 2007 Share Posted November 8, 2007 I've never heard of anything, but then again, I don't program in C++. Link to comment https://forums.phpfreaks.com/topic/76497-php-functions-in-c/#findComment-387577 Share on other sites More sharing options...
btherl Posted November 12, 2007 Share Posted November 12, 2007 I think you'll find it easier to find a C++ string library that does what you want. You could investigate the Boost String libraries, designed to fill in functions missing from STL: http://www.boost.org/doc/html/string_algo.html#string_algo.intro Link to comment https://forums.phpfreaks.com/topic/76497-php-functions-in-c/#findComment-389661 Share on other sites More sharing options...
jammesz Posted November 13, 2007 Author Share Posted November 13, 2007 Thanks for the help btherl. Very useful library. Link to comment https://forums.phpfreaks.com/topic/76497-php-functions-in-c/#findComment-390474 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.