title: Get the name of a variable in a string
body: <p>Hi I want to create a function in which I can pass a variable and output the name of the variable and its value as a sting. Something like this:</p>
  
  <pre><code>$firstname = 'John';
  $lastname = 'Doe';
  
  echo my_function($firstname); // outputs: "Var name: firstname , has: John"
  echo my_function($lastname);  // outputs:  "Var name: lastname , has: Doe"
  </code></pre>