PHP Wordpress optimization my loop code
<p>I'm just learning PHP, and I'm using get_terms to get some text descriptions from the CMS, but i want to assign 3 variables to only 3 of my woocommerce tags. 
My code works well, but I just want to learn if there's a better way to filter by $tag_descrip->name than using if conditions.</p>

<p>This is my code:</p>

<pre><code>&lt;?php
$tag_descrip = get_terms( 'product_tag', 'orderby=count&amp;hide_empty=0' );
$count = count($tag_descrip);


if ( $count &gt; 0 ){

 foreach ( $tag_descrip as $tag_descrip ) {

 if($tag_descrip-&gt;name == "parfum_bestof")
   {$title_new1 = $tag_descrip-&gt;description ;}

 if($tag_descrip-&gt;name == "tshirt_bestof")
   {$title_new2 = $tag_descrip-&gt;description ;}

 if($tag_descrip-&gt;name == "child_bestof")
   {$title_new3 = $tag_descrip-&gt;description ;}



 }



}

?&gt; 
</code></pre>

<p>Thanks</p>
