custom function that uses isset() returning undefined variables when used [duplicate]
问题 This question already has answers here : PHP take string and check if that string exists as a variable (3 answers) Closed 5 years ago . I have a field that depends has custom text if a certain condition is met...and if it isn't the field is blank. I have written a custom function test if a variable is set function AmISet($fieldName) { if (isset($fieldName)) { echo "I am set"; }else{ echo "I am not set"; } }; but when I attach it the field I get an error that the variable is undefined. But