I saw some code from this website:
function link($text){
return preg_replace('@((https?://)?([-\w]+\.[-\w\.]+)+\w(:\d+)?(/([-\w/_\.]*(\?\S+)?)?)*)@', '<a href="$1">$1</a>', $text);
}
What do $0
and $1
mean? Are they regular variables, or do they have special meaning?