a better way to "remove" a line of code is to comment it out - that way, the code is ignored, but you can still restore it easily if it turns out you needed it.PHP Code:$example = "I like this code";
// $bad = "I think this line is a problem";
// <-- the two slashes make a one-line comment: everything after them (on the same line) is ignored by PHP.
/*
this is another way to make a comment.
the slash-and-star starts the comment,
and the star-and-slash ends it.
this is also useful in cases like below,
where you want to keep most of the code and only change one part:
*/
$variable = /*"bad value";*/ "good value";

