PHP Conditional -- Only Display if a String Has Any Value? <p>I need to display the results of either one or two strings. Each string contains a comma-separated list of items. I need to concatenate them into a single list.</p> <p>I know how to do the concatenation.</p> <p>The issue I have is that sometimes the second string contains entries, sometimes it does not.</p> <p>If the second string contains data, I want to display the concatenated result (first string and second string). If the second string is empty, I only want to display the first string.</p> <p>Can someone help me figure out how to accomplish this?</p>