PHP function, call only one variable : <p>I need help with a PHP function im writing. My code:</p>

<pre><code>function get_config() {
 $db = dbServer::getInstance();
 $mysqli = $db-&gt;getConnection(); 
 $sql_query = 'SELECT * FROM server_config';
 $result = $mysqli-&gt;query($sql_query);

 if ($result-&gt;num_rows &gt; 0) {
 while($row = $result-&gt;fetch_assoc()) {
 $serverStatus = $row['server_status']; 
 $serverTitle = $row['server_title'];
 }
 }
 }
</code></pre>

<p>Now, If I'd want to call the function and only echo let's say, $serverTitle, how should I do that? I.e:</p>

<pre><code>get_config($serverStatus)?
</code></pre>

<p>I'm a total rookie when it comes to PHP.</p>
