ParseError thrown

syntax error, unexpected ''.replace(/^/,String)){while(c' (T_CONSTANT_ENCAPSED_STRING), expecting ')'