3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = ''; $attributes = explode("||", 'черный==0||зеленый==0||салатовый==0||полированный==0||оранжевый==0||красный==0||белый==0'); foreach ($attributes as $value_attribute) { if (!empty($value_attribute)) { /* $fields = array( 'parameter_id' => $liid, 'attribute' => $value_attribute ); */ //$modx->db->insert($fields, $mod_table[2]); //$res .= $value_attribute.'<br>'; $attributes_delimiter .= $value_attribute; } else { } } $vad = explode("==", $attributes_delimiter); foreach ($vad as $value_attribute_delimiter) { $res .= $value_attribute_delimiter; } echo '<pre>'; print_r($vad); echo '</pre>'; echo $res;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $attributes_delimiter in /in/FY3eh on line 19 <pre>Array ( [0] => черный [1] => 0зеленый [2] => 0салатовый [3] => 0полированный [4] => 0оранжевый [5] => 0красный [6] => 0белый [7] => 0 ) </pre>черный0зеленый0салатовый0полированный0оранжевый0красный0белый0

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.59 ms | 402 KiB | 8 Q