Location: PHPKode > projects > JaxBlog > JaxBlog/app/admin/admin_panes/test.php
<?php

	$i = 0;
	$source = "Hello [test] World";
	$rows = preg_split("/\[([A-Za-z]*)\]/", $source, -1, PREG_SPLIT_DELIM_CAPTURE);
	foreach ($rows as $row) {
		if ($i++ % 2 == 1) {
			echo "$row with brackets<br/>\n";
		} else {
			echo "$row<br/>\n";
		}
	}

?>
Return current item: JaxBlog