<?php $args = array( // In this case notice is generated anyway. // 'test', 'test:1', 'test:1:2', 'test:1:2:3', ); foreach ($args as $arg) { list($type, $key) = explode(':', $arg, 2); $imploded = $type . ':' . $key; print $imploded !== $arg ? $arg . ' is not equal after explode/concat' : $arg . ' is equal after explode/concat'; print "\n"; }
You have javascript disabled. You will not be able to edit any code.