title: How to display the contain of an array in php which is in loop
body: <p>I m stuck in a part where there is a loop and I want different contain with different statement </p>
  
  <p><strong>buy 50 (statement 1)</strong></p>
  
  <p><strong>rent 60 (statement 2)</strong> </p>
  
  <p>the code I have is like </p>
  
  <pre><code> &lt;?php if ($option['type'] == 'radio') { ?&gt;
          &lt;div id="option-&lt;?php echo $option['product_option_id']; ?&gt;" class="option form-group"&gt;
            &lt;?php if ($option['required']) { ?&gt; &lt;b&gt;&lt;?php echo $option['name']; ?&gt;&lt;span class="required"&gt;*&lt;/span&gt;:&lt;/b&gt;&lt;?php } ?&gt;
           &lt;div class="checkbox-list"&gt;
            &lt;?php foreach ($option['option_value'] as $option_value) { ?&gt;
            &lt;label for="option-value-&lt;?php echo $option_value['product_option_value_id']; ?&gt;"&gt;
            &lt;input type="radio" name="option[&lt;?php echo $option['product_option_id']; ?&gt;]" value="&lt;?php echo $option_value['product_option_value_id']; ?&gt;" id="option-value-&lt;?php echo $option_value['product_option_value_id']; ?&gt;"/&gt;
            &lt;?php echo $option_value['name']; ?&gt;
            &lt;?php echo $option_value['name']; ?&gt;
              &lt;?php if ($option_value['price']) { ?&gt;
              (&lt;?php echo $option_value['price']; ?&gt;)
              &lt;?php } ?&gt;
  </code></pre>
  
  <p>just wanted the two out not in the loop it use array which is confusing me </p>