1.

What is the purpose of the parameter $value?(a) Field’s expected value(b) Field’s previous value(c) Field’s current value(d) Field’s probability valueThe question was asked during a job interview.The above asked question is from Crafting the Public API in chapter Parsing, Benchmarking and Logging of JavaScript

Answer»

Right option is (C) Field’s current value

Easy explanation: getinputhtml() accepts two arguments: $NAME and $value. The PARAMETER $value is the field’s current value (either from the DB, or the POST data if there was a VALIDATION error).



Discussion

No Comment Found

Related InterviewSolutions