justhrun

platform.pehape

Jun 8th, 2015
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. echo '<p>Platforms : ';
  2.                         if ($platformObject->readByProductId($productId)) {
  3.                             $platforms = $platformObject->readByProductId($productId);
  4.                             $str = '';
  5.                             foreach ($platforms as $value) {
  6.                                 foreach ($value as $str) {
  7.                                     $str .= $str.', ';
  8.                                 }
  9.                             }
  10.                             $str = substr_replace($str, '', strrpos($str,','), 1);
  11.                             echo $str;
  12.                         }
  13.                                         echo '</p>';
Advertisement
Add Comment
Please, Sign In to add comment