gghhh456 Posted February 28, 2014 Share Posted February 28, 2014 Hello every1, I have a small project to do and I dont know whether PHP is the right language for this. But I am open to any other languages based on C/C++. I have knowledge in HTML, PHP and Java, but i am no expert, just an intermediate. okay, Regarding my project: I have a dynamic web page written in PHP, all I have to do search for certain words and count how many times this word has appeared. Table them with rows and colums. My question is; 1. Is it possible to do using PHP or should I look for another programming language? 2. If its possible could you point me to right direction like where I should I look for. Cheers Gg. Quote Link to comment Share on other sites More sharing options...
jairathnem Posted February 28, 2014 Share Posted February 28, 2014 array_count_values(str_word_count($string, 1)) ); This will return the list of all the words in the string and their count. Quote Link to comment Share on other sites More sharing options...
gghhh456 Posted February 28, 2014 Author Share Posted February 28, 2014 can I also extend the search to find certain type of images... like in an group of images of bird and Can I search say "Eagle" and display the results..??? Quote Link to comment Share on other sites More sharing options...
jairathnem Posted February 28, 2014 Share Posted February 28, 2014 can I also extend the search to find certain type of images... like in an group of images of bird and Can I search say "Eagle" and display the results..??? not able to get you here. you want to read what from the images? do you want to search based on file names? Quote Link to comment Share on other sites More sharing options...
Zane Posted February 28, 2014 Share Posted February 28, 2014 (edited) I have a dynamic web page written in PHP Firstly, the sole purpose of using PHP (or pretty much any programming language) is to create dynamic content. That being said, I still have no idea what you are asking. all I have to do search for certain words and count how many times this word has appeared. Table them with rows and colums. Where are you searching from? Where are these "words"? Are you talking about querying a database? Your question is very unclear. Edited February 28, 2014 by Zane 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.