I have a variable $item='name'
. I want to create a new variable called $nameError
.
Because $item
changes through each loop I would like to set this like: $$itemError
however I know this syntax is incorrect.
Can anyone let me know the correct way to do this?