PHP Variable Names


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <pre>
  2.  
  3. Since the curly braces literally mean "evaluate my contents as a string"
  4.  
  5. use
  6. print_r() or var_dump()
  7. the superglobal $GLOBALS
  8.  
  9. use
  10. get_defined_vars()
  11. to find out the variable names that have been created.
  12.  
  13. </pre>

URL: http://cowburn.info/2008/01/12/php-vars-curly-braces/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.