PhpTips.im - Everything about php - Download CMS, find tips and tricks, code snippetz, classes and more and more...
Bookmark this page !
   

Articles

    Home » Articles » PHP Snippets » Drupal - find available variable names and content for node
Published on : 15.05.2010 Category : PHP Snippets Viewed : 59 times.

Code:


  1. <?php
  2. foreach($node->content as $outerarray=>$outerarrayvalue)
  3. {
  4. foreach($outerarrayvalue as $innerarray=>$innerarrayvalue)
  5. {
  6. foreach($innerarrayvalue as $centrearray=>$centrearrayvalue)
  7. {
  8. foreach($centrearrayvalue as $key => $value)
  9. {
  10. echo("<em>".$outerarray."["".$innerarray.""]["".$centrearray.""]["".$key.""] = </em><b>".$value."</b><br />");
  11. }
  12. }
  13. }
  14. }
  15. ?>



Add this article in :

 

There is not yet any comment !



1092 Rating: 0.0/10 (0 votes cast)

 

 Members
Log In !
Email Address :

Password :


Change my passowrd !
Sign Up !
We have : 3 members.
Latest member : albans
 
 Last Posts
 
 Advertising
 
©PhpTips.im 2010
Powered by PikaCMS.
Quick Links :
Home | Browse all articles | Downloads | Terms of Use
RSS RSS 2.0 : Articles | Downloads ATOM : Articles | Downloads