qsadfasdgfgads

Untitled

Mar 30th, 2020
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. array(2) {
  2. [0]=>
  3. array(4) {
  4. ["id"]=>
  5. int(1)
  6. ["parent_id"]=>
  7. int(0)
  8. ["name"]=>
  9. string(4) "root"
  10. ["childs"]=>
  11. array(2) {
  12. [0]=>
  13. array(4) {
  14. ["id"]=>
  15. int(3)
  16. ["parent_id"]=>
  17. int(1)
  18. ["name"]=>
  19. string(15) "child 1 of root"
  20. ["childs"]=>
  21. array(0) {
  22. }
  23. }
  24. [1]=>
  25. array(4) {
  26. ["id"]=>
  27. int(4)
  28. ["parent_id"]=>
  29. int(1)
  30. ["name"]=>
  31. string(15) "child 2 of root"
  32. ["childs"]=>
  33. array(1) {
  34. [0]=>
  35. array(4) {
  36. ["id"]=>
  37. int(6)
  38. ["parent_id"]=>
  39. int(4)
  40. ["name"]=>
  41. string(23) "child 1 of child 2 root"
  42. ["childs"]=>
  43. array(0) {
  44. }
  45. }
  46. }
  47. }
  48. }
  49. }
  50. [1]=>
  51. array(4) {
  52. ["id"]=>
  53. int(2)
  54. ["parent_id"]=>
  55. int(0)
  56. ["name"]=>
  57. string(5) "root2"
  58. ["childs"]=>
  59. array(1) {
  60. [0]=>
  61. array(4) {
  62. ["id"]=>
  63. int(5)
  64. ["parent_id"]=>
  65. int(2)
  66. ["name"]=>
  67. string(16) "child 1 of root2"
  68. ["childs"]=>
  69. array(0) {
  70. }
  71. }
  72. }
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment