fork download
  1. <?php
  2.  
  3. $slide['notes'] = array('$100.00 Value', 'X Value', 'Y value' );
  4. foreach ($slide['notes'] as $note){
  5. $class = (strpos($note, '$100.00 Value')) !== false ? 'class="someClass"' : "";
  6. echo "<li{$class}>$note</li>";
  7. }
  8.  
  9.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
<liclass="someClass">$100.00 Value</li><li>X Value</li><li>Y value</li>