1

I want to print the array identifier name along with its content. In situations where a page contains many arrays, then there is a confusion - which elements belong to which array.

$user= array('id' => 1,'name' => "Tom");

//expectation
user
Array
(
    [id] => 1
    [name] => Tom
)
u_mulder
  • 53,091
  • 5
  • 44
  • 59
ankit singh
  • 206
  • 2
  • 8
  • Thiis [link](https://stackoverflow.com/questions/255312/how-to-get-a-variable-name-as-a-string-in-php) may help you – Rahul Apr 12 '19 at 11:49

0 Answers0