spixy 0 Newbie Poster

I am playing a web-based game and i want to know if Php is capable of doing this problem

this are the conditions:

1. there will be 3 text-areas
a. the 1st will contain the guild's members
b. the 2nd will contain the enemies
c. the 3rd will contain the battle report

2. the Battle Report
*there are varieties of BR(battle reports)* - it is not necessary for this time
and here are some examples of a battle report

BATTLE REPORTS

SO WHAT THE HELL ARE WE GONNA DO WITH THIS CONDITIONS?

_ The php code must scan the BRs and filter only those BR which has the names of the GUILD MEMBERS
_ then filter again the BR which has the name of the ENEMIES

result will be ofcourse the list of filtered BR

*EXAMPLE*

-pasted a list of guild members

CebuKid (#299)
Azrael (#311)
JerryVal (#340)

-pasted a list of enemies

Playaforlifebunny (#474)
ProdigalBunny (#217)
Enemy(#666)

-pasted BRs
BATTLE REPORTS


result is:
filtered out all BRs who has nothing to do with my guild members
filtered out again those BR who has nothing to do with the enemies
printed the remaining BRs

thank you!!

any pseudocode for this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.