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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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++. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.