How to iterate loop inside a string searching for any word aftera fixed keyword?

Posted by Parth on Stack Overflow See other posts from Stack Overflow or by Parth
Published on 2010-03-27T09:21:09Z Indexed on 2010/03/27 11:03 UTC
Read the original article Hit count: 379

Filed under:
|
|

Suppose I have a sting as "PHP Paddy,PHP Pranav,PHP Parth", now i have a count as 3,now how should I iterate loop in the string aiming on string after "PHP " to display the all the names?

Alright This is the string "BEGIN IF (NEW.name != OLD.name) THEN INSERT INTO jos_menuaudit set menuid=OLD.id, oldvalue = OLD.name, newvalue = NEW.name, field = "name"; END IF; IF (NEW.alias != OLD.alias) THEN INSERT INTO jos_menuaudit set menuid=OLD.id, oldvalue = OLD.alias, newvalue = NEW.alias, field = "alias"; END IF; END" in which i am searching the particular word after " IF (NEW.", and after that particualar others strings should not b displayed, hence whenever in a loop it finds " IF (NEW." I musr get a word just next to it. and in this way an array should b ready for to use.

© Stack Overflow or respective owner

Related posts about php

Related posts about string