number as variable name not possible right? But this works
${4} = 444;
echo ${4};
Question: How much is this justified using this syntax? and where is info about this in documentation? I not found.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The syntax is covered in Variable variables. No, you are not “justified” in using this syntax. You should absolutely never do this, there is no good reason for using a number as a variable name.