Public feed #890765

Mine

public text v1 · immutable
Raw Edit
·published 2008-02-04 01:15 UTC
rendered paste body
preg_match_all('/\[(([^\]\[]*\[[^\]\[]*\])*|[^\]\[]*)\]/', 'fdaf [title] [subtitle] fdafa', $contents);
$title = $contents[1][0];
$subtitle = $contents[1][1];

echo "<h1>$title</h1>";
echo "<h2>$subtitle</h2>";