$string="example==a thing characteristic of its kind or illustrating a general rule.&&test==a procedure intended to establish the quality, performance, or reliability of something, especially before it is taken into widespread use.&&demonstrate==clearly show the existence or truth of (something) by giving proof or evidence."; print_r (stringtoArray($string, '==', '&&'));