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
  • 54,101
  • 5
  • 48
  • 64
ankit singh
  • 286
  • 2
  • 9
  • 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