Syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$'
问题 I'm getting Syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' This is the code i'm using function wpse44503_filter_content( $content ) { $regex = '#src=("|\')'. '(/images/(19|20)(0-9){2}/(0|1)(0-9)/[^.]+\.(jpg|png|gif|bmp|jpeg))'. '("|\')#'; $replace = 'src="'.get_site_url( $2 ).'"'; $output = preg_replace( $regex, $replace, $content ); return $output; } This is the line where i'm getting that error $replace = 'src="'.get_site_url( $2 ).'"'; Can anyone help me to fix it? Thanks