Posted By

dvdrtrgn on 08/19/08


Tagged

php types


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

dvdrtrgn
vali29


PHP Variable Names


 / Published in: HTML
 

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

  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>

Report this snippet  

You need to login to post a comment.