Menu
I am writing a questionaire in PHP whose responses will be “numbers” from 1 to 8. The HTML form will pass these responses to the PHP program as text, the pair values being the numbers of the items and corresponding user responses (1 to 8). How can these text values be converted to numeric values so that arithmetic can be performed? The book I am using to investigate PHP does not cover this topic. I am familiar with how this is accomplished in other programming languages.Thank you.