while { this[i]!="" | that[j]!="" ){ echo "this[i] love that[j]"; i++;j++; }