Hi. If I have the following:
$string="A111B111A111B111"; $yes_or_no="no";
Is there a way to read that string and set/reset $yes_or_no to "yes" each time it finds an A and back "no" when it finds the subsequent B?
Thanks!Joe
In reply to Change variable multiple times within a single string? by JTomb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |