How to display something from array with another name in PHP? <p>I have one array that returns one element $name, and I want to display it with another name, For example:</p> <p>$name = 'PC' and I want to display it as 'PC COMPUTER', first array displays element wich is true, how to compare this elements with another array to display it with that other names?</p>