Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. function getNodesInfo($node)
  2. {
  3. foreach ($result as $key => $value)
  4. {
  5. $items[]=$key;
  6. }
  7. echo ("-----."n");
  8. print_r($items."n");
  9.  
  10. getNodesInfo($subNode);
  11. }
  12.  
  13. -------
  14. Array
  15. (
  16. [0] => author
  17. [1] => title
  18. [2] => genre
  19. [3] => price
  20. [4] => publish_date
  21. [5] => description
  22. )
  23. -------
  24. Array
  25. (
  26. [0] => author
  27. [1] => title
  28. [2] => genre
  29. [3] => price
  30. [4] => publish_date
  31. [5] => description
  32. )
  33. -------
  34. Array
  35. (
  36. [0] => book
  37. )
  38.  
  39. Array
  40. (
  41. [0] => author
  42. [1] => title
  43. [2] => genre
  44. [3] => price
  45. [4] => publish_date
  46. [5] => description
  47. )
  48. -------
  49. Array
  50. (
  51. [0] => book
  52. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement