PHP String matching

Suppose a string:

$str = 'a_b_c';

I want match all possible combination with a, b, c with above. For example:

b_a_c, c_a_b, a_c_b..etc will be give true when compare with above $str.

NOTE:

$str may be random. eg: a_b, k_l_m_n etc

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories